diff options
-rw-r--r-- | src/clone.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/clone.c b/src/clone.c index c627edbc0..24f1cae59 100644 --- a/src/clone.c +++ b/src/clone.c @@ -171,6 +171,10 @@ static int update_head_to_new_branch( git_reference_free(tracking_branch); + /* if it already existed, then the user's refspec created it for us, ignore it' */ + if (error == GIT_EEXISTS) + error = 0; + return error; } |