mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
git storage: add explanation for fast forward to remote
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
092d0478c3
commit
f869ce51b4
1 changed files with 3 additions and 1 deletions
|
@ -447,8 +447,10 @@ static int try_to_update(git_repository *repo, git_remote *origin, git_reference
|
|||
return report_error("Unable to find common commit of local and remote branches");
|
||||
}
|
||||
/* Is the remote strictly newer? Use it */
|
||||
if (git_oid_equal(&base, local_id))
|
||||
if (git_oid_equal(&base, local_id)) {
|
||||
git_storage_update_progress(10, "fast forward to remote");
|
||||
return reset_to_remote(repo, local, remote_id);
|
||||
}
|
||||
|
||||
/* Is the local repo the more recent one? See if we can update upstream */
|
||||
if (git_oid_equal(&base, remote_id)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue