summaryrefslogtreecommitdiff
path: root/bin/git-gpush
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2014-10-08 19:41:54 +0200
committerOswald Buddenhagen <oswald.buddenhagen@gmx.de>2020-03-05 18:07:07 +0000
commit351e37ab23c7345f410d620cbe1e76c2d32f1f3f (patch)
tree4259a5d071dd00e153a9028b39fd74686c03b3b6 /bin/git-gpush
parent8df45087d7b9d67e01de3ff7163acf8bb32e3cb1 (diff)
downloadqtrepotools-351e37ab23c7345f410d620cbe1e76c2d32f1f3f.tar.gz
add git-gpick tool
this tool complements the gpush tool in that it provides a convenient way to synchronize with gerrit. this first version just sheepishly replaces the named local commits with the current patchset from gerrit. Change-Id: I21f8ef385d1793757149dfa5cc69e4e907cb1c04 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Diffstat (limited to 'bin/git-gpush')
-rwxr-xr-xbin/git-gpush4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/git-gpush b/bin/git-gpush
index e583ac5..9b67285 100755
--- a/bin/git-gpush
+++ b/bin/git-gpush
@@ -740,7 +740,7 @@ sub print_errors($)
fail_push($group, "Giving up - push is going to be rejected.\n")
if ($have_rejected);
fail_push($group, "Local state is out of sync with Gerrit.\n",
- "Please specify --force to push nonetheless.\n")
+ "Please use git gpick, or specify --force to push nonetheless.\n")
if ($need_force && !$force);
}
@@ -924,6 +924,6 @@ sub execute_pushing()
process_config();
parse_arguments(@ARGV);
goto_gitdir();
-load_state();
+load_state(0);
execute_pushing();
save_state($dry_run);