diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-03-16 17:53:08 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-16 17:53:08 -0700 |
commit | 47c52b2dada2d7223cfc8927ae7909dba27579a2 (patch) | |
tree | a757bd2c357f9c43a5be33800859c056c213016f /t | |
parent | Merge branch 'vd/sparse-read-tree' (diff) | |
parent | builtin/remote.c: show progress when renaming remote references (diff) | |
download | tgif-47c52b2dada2d7223cfc8927ae7909dba27579a2.tar.xz |
Merge branch 'tb/rename-remote-progress'
"git remote rename A B", depending on the number of remote-tracking
refs involved, takes long time renaming them. The command has been
taught to show progress bar while making the user wait.
* tb/rename-remote-progress:
builtin/remote.c: show progress when renaming remote references
builtin/remote.c: parse options in 'rename'
Diffstat (limited to 't')
-rwxr-xr-x | t/t5505-remote.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh index 9ab315424c..c90cf47acd 100755 --- a/t/t5505-remote.sh +++ b/t/t5505-remote.sh @@ -753,7 +753,9 @@ test_expect_success 'rename a remote' ' ( cd four && git config branch.main.pushRemote origin && - git remote rename origin upstream && + GIT_TRACE2_EVENT=$(pwd)/trace \ + git remote rename --progress origin upstream && + test_region progress "Renaming remote references" trace && grep "pushRemote" .git/config && test -z "$(git for-each-ref refs/remotes/origin)" && test "$(git symbolic-ref refs/remotes/upstream/HEAD)" = "refs/remotes/upstream/main" && |