summaryrefslogtreecommitdiff
path: root/bin/git-branchmove
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-12-06 18:12:35 -0700
committerSean Whitton <spwhitton@spwhitton.name>2019-12-06 18:12:35 -0700
commite3a4e3fbf080ee98cf834bb13d481dcab81223af (patch)
treeb22b6dc210106cb04ef7265c00d7097ce465c6cb /bin/git-branchmove
parent535396ed676d2d230deb4ee4ac75adabaa8354fa (diff)
downloaddotfiles-e3a4e3fbf080ee98cf834bb13d481dcab81223af.tar.gz
perltidy & var name
Diffstat (limited to 'bin/git-branchmove')
-rwxr-xr-xbin/git-branchmove5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/git-branchmove b/bin/git-branchmove
index d63a362a..156078fa 100755
--- a/bin/git-branchmove
+++ b/bin/git-branchmove
@@ -188,8 +188,9 @@ 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);
- $git->update_ref('-m', "git-branchmove: moved to $remote ($remoteurl)",
- '-d', $_->{ref}, $_->{hash}) for @source_branches;
+ $git->update_ref('-m', "git-branchmove: moved to $remote ($rurl)",
+ '-d', $_->{ref}, $_->{hash})
+ for @source_branches;
} elsif ($op eq 'get') {
$git->fetch('--no-tags', $remote, @refspecs);
$git->push('--no-follow-tags', $remote, @nuke_refspecs);