simon-git: git-remote-testpush (main): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Fri Dec 1 17:46:02 GMT 2023
TL;DR:
55fb5b4 Fix handling of new branch creation.
Repository: https://git.tartarus.org/simon/git-remote-testpush.git
On the web: https://git.tartarus.org/?p=simon/git-remote-testpush.git
Branch updated: main
Committer: Simon Tatham <anakin at pobox.com>
Date: 2023-12-01 17:46:02
commit 55fb5b4e02afc2762b7700ba08b5133db2c43d78
web diff https://git.tartarus.org/?p=simon/git-remote-testpush.git;a=commitdiff;h=55fb5b4e02afc2762b7700ba08b5133db2c43d78;hp=147c486fbe3e3bcd62304bf16ead2ba7328ef9d5
Author: Simon Tatham <anakin at pobox.com>
Date: Fri Dec 1 17:44:10 2023 +0000
Fix handling of new branch creation.
If you try to update a ref that doesn't exist on the real remote, the
dry-run push should succeed, and report that the push (if done for
real) would create a new branch. Instead, git-remote-testpush exits
with a fatal error after 'git fetch' fails to retrieve the current
value of the ref from the remote.
The fix is easy: if git fetch fails, return 'ok' for that ref instead
of exploding.
git-remote-testpush | 35 ++++++++++++++++++++---------------
1 file changed, 20 insertions(+), 15 deletions(-)
More information about the tartarus-commits
mailing list