mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
GitRefController: Fix moving and updating branches
This was also broken with the libgit2 move
This commit is contained in:
committed by
Pieter de Bie
parent
afcd0b4bc6
commit
35f20cddd5
+2
-2
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user