Permalink
Browse files

add path of git binary.

  • Loading branch information...
1 parent fe95b28 commit f3df087ae4a5c5b3669c62e5b5937c7417f53b4f @Watson1978 committed May 1, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 README.md
  2. +1 −1 git_add/git_add.m
  3. +1 −1 git_commit/git_commit.m
View
@@ -5,7 +5,7 @@ There are Mac Automator plugins for Git.
# Install
## Install Git
[Git](http://git-scm.com/) is necessary. Please install Git first.
-You can skip if Git is installed in "/opt/local/bin:/usr/local/bin:/usr/local/git/bin".
+You can skip if Git is installed in "/opt/local/bin:/usr/local/bin:/usr/local/git/bin:/usr/bin".
You can download it from the lower site.
- http://code.google.com/p/git-osx-installer/downloads/list?can=3
View
@@ -17,7 +17,7 @@ - (id)runWithInput:(id)input fromAction:(AMAction *)anAction error:(NSDictionary
[task setLaunchPath: @"/bin/sh"];
[task setCurrentDirectoryPath: path];
- [task setArguments: [NSArray arrayWithObjects: @"-c", @"PATH=/opt/local/bin:/usr/local/bin:/usr/local/git/bin; git add .", nil]];
+ [task setArguments: [NSArray arrayWithObjects: @"-c", @"PATH=/opt/local/bin:/usr/local/bin:/usr/local/git/bin:/usr/bin; git add .", nil]];
[task setStandardError: pipe];
[task launch];
View
@@ -13,7 +13,7 @@ - (id)runWithInput:(id)input fromAction:(AMAction *)anAction error:(NSDictionary
NSEnumerator *enumerate = [input objectEnumerator];
NSString *path = [enumerate nextObject];
NSString *message = [commitMessage stringValue];
- NSString *cmd = [NSString stringWithFormat: @"PATH=/opt/local/bin:/usr/local/bin:/usr/local/git/bin; git commit -m '%@'", message];
+ NSString *cmd = [NSString stringWithFormat: @"PATH=/opt/local/bin:/usr/local/bin:/usr/local/git/bin:/usr/bin; git commit -m '%@'", message];
NSTask *task = [[NSTask alloc] init];
NSPipe *pipe = [[NSPipe alloc] init];

0 comments on commit f3df087

Please sign in to comment.