diff --git a/PBGitCommitController.m b/PBGitCommitController.m index fcf1f69..15d889d 100644 --- a/PBGitCommitController.m +++ b/PBGitCommitController.m @@ -289,6 +289,12 @@ commitSubject = [@"commit: " stringByAppendingString:commitSubject]; + NSString *commitMessageFile; + commitMessageFile = [repository.fileURL.path + stringByAppendingPathComponent:@"COMMIT_EDITMSG"]; + + [commitMessage writeToFile:commitMessageFile atomically:YES encoding:NSUTF8StringEncoding error:nil]; + self.busy++; self.status = @"Creating tree.."; NSString *tree = [repository outputForCommand:@"write-tree"];