Remove some debug output

This commit is contained in:
Pieter de Bie
2008-06-15 16:44:54 +02:00
parent 2e4ea6edab
commit 9a40fd9748
2 changed files with 1 additions and 12 deletions
-7
View File
@@ -12,12 +12,6 @@
@synthesize repository;
- (IBAction) clickButton:(id) sender
{
[self.repository addCommit:@"Haaha"];
}
- (GitTest_AppDelegate*) init
{
char* a = getenv("PWD");
@@ -29,7 +23,6 @@
path = [[NSString stringWithCString:a] stringByAppendingString:@"/.git"];
self.repository = [PBGitRepository repositoryWithPath:path];
NSLog(@"Repository is: %@", repository);
return self;
}
+1 -5
View File
@@ -13,7 +13,7 @@
@implementation PBGitRepository
@synthesize commits;
@synthesize path, commits;
static NSString* gitPath = @"/usr/bin/env";
+ (PBGitRepository*) repositoryWithPath:(NSString*) path
@@ -37,7 +37,6 @@ static NSString* gitPath = @"/usr/bin/env";
char* path = getenv("GIT_PATH");
if (path != nil) {
gitPath = [NSString stringWithCString:path];
NSLog(@"Git path is now '%@'", gitPath);
return;
}
@@ -51,7 +50,6 @@ static NSString* gitPath = @"/usr/bin/env";
[task launch];
NSString* a = [handle readLine];
gitPath = a;
NSLog(@"Git path is now '%@'", gitPath);
if (a.length == 0) {
NSLog(@"Git path not found. Defaulting to /opt/pieter/bin/git");
@@ -119,6 +117,4 @@ static NSString* gitPath = @"/usr/bin/env";
return handle;
}
@synthesize path;
@end