GitRefController: Fix moving and updating branches

This was also broken with the libgit2 move
This commit is contained in:
Mark Bestley
2008-12-01 13:59:05 +01:00
committed by Pieter de Bie
parent afcd0b4bc6
commit 35f20cddd5
+2 -2
View File
@@ -138,7 +138,7 @@
return NO;
int retValue = 1;
[historyController.repository outputForArguments:[NSArray arrayWithObjects:@"update-ref", @"-mUpdate from GitX", [ref ref], [dropCommit sha], NULL] retValue:&retValue];
[historyController.repository outputForArguments:[NSArray arrayWithObjects:@"update-ref", @"-mUpdate from GitX", [ref ref], [dropCommit realSha], NULL] retValue:&retValue];
if (retValue)
return NO;
@@ -170,7 +170,7 @@
PBGitCommit *commit = [[commitController selectedObjects] objectAtIndex:0];
int retValue = 1;
[historyController.repository outputForArguments:[NSArray arrayWithObjects:@"update-ref", @"-mCreate branch from GitX", branchName, [commit sha], NULL] retValue:&retValue];
[historyController.repository outputForArguments:[NSArray arrayWithObjects:@"update-ref", @"-mCreate branch from GitX", branchName, [commit realSha], NULL] retValue:&retValue];
if (retValue)
{
NSLog(@"Creating ref failed!");