diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2019-12-06 18:11:17 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-12-06 18:11:17 -0700 |
commit | 535396ed676d2d230deb4ee4ac75adabaa8354fa (patch) | |
tree | a2d3a28ff2843e4e51ea31eeee6e9f23f6fc4416 /bin/git-branchmove | |
parent | 5527b913745cd4c9ec899d2837d02ceb2ba0fb36 (diff) | |
download | dotfiles-535396ed676d2d230deb4ee4ac75adabaa8354fa.tar.gz |
pass -m
Diffstat (limited to 'bin/git-branchmove')
-rwxr-xr-x | bin/git-branchmove | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/git-branchmove b/bin/git-branchmove index 3a7a5b5e..d63a362a 100755 --- a/bin/git-branchmove +++ b/bin/git-branchmove @@ -188,10 +188,8 @@ my @refspecs = map { "$_->{ref}:$_->{ref}" } @source_branches; my @nuke_refspecs = map { ":$_->{ref}" } @source_branches; if ($op eq 'put') { $git->push('--no-follow-tags', $remote, @refspecs); - foreach my $source_branch (@source_branches) { - # TODO pass a -m argument to update-ref as Ian's script does - $git->update_ref('-d', $source_branch->{ref}, $source_branch->{hash}); - } + $git->update_ref('-m', "git-branchmove: moved to $remote ($remoteurl)", + '-d', $_->{ref}, $_->{hash}) for @source_branches; } elsif ($op eq 'get') { $git->fetch('--no-tags', $remote, @refspecs); $git->push('--no-follow-tags', $remote, @nuke_refspecs); |