mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Fix file path construction when using NSString
This commit is contained in:
committed by
Pieter de Bie
parent
feb0b64f29
commit
40cceebc9b
+2
-2
@@ -32,7 +32,7 @@
|
||||
[array addObject:@"--global"];
|
||||
else {
|
||||
[array addObject:@"-f"];
|
||||
[array addObject:[repositoryPath stringByAppendingString:@"/config"]];
|
||||
[array addObject:[repositoryPath stringByAppendingPathComponent:@"config"]];
|
||||
}
|
||||
|
||||
[array addObject:key];
|
||||
@@ -69,7 +69,7 @@
|
||||
// Check if the config option is local. In that case,
|
||||
// write it local
|
||||
if (repositoryPath) {
|
||||
NSMutableArray *arguments = [NSMutableArray arrayWithObjects:@"config", @"-f", [repositoryPath stringByAppendingString:@"/config"], @"--get", path, nil];
|
||||
NSMutableArray *arguments = [NSMutableArray arrayWithObjects:@"config", @"-f", [repositoryPath stringByAppendingPathComponent:@"config"], @"--get", path, nil];
|
||||
int ret;
|
||||
[PBEasyPipe outputForCommand:[PBGitBinary path] withArgs:arguments inDir:nil retValue:&ret];
|
||||
|
||||
|
||||
+1
-2
@@ -158,8 +158,7 @@ NSString* PBGitRepositoryErrorDomain = @"GitXErrorDomain";
|
||||
// Get the .gitignore file at the root of the repository
|
||||
- (NSString*)gitIgnoreFilename
|
||||
{
|
||||
NSString *dir = [self workingDirectory];
|
||||
return [dir stringByAppendingString:@"/.gitignore"];
|
||||
return [[self workingDirectory] stringByAppendingPathComponent:@".gitignore"];
|
||||
}
|
||||
|
||||
// Overridden to create our custom window controller
|
||||
|
||||
Reference in New Issue
Block a user