diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2019-12-06 17:49:39 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-12-06 17:49:39 -0700 |
commit | aecda1ceb33e4b727be349b7dbf2af687955c9a4 (patch) | |
tree | 9ef855f1c10af900c94c4e53ebb8532171bb7872 /bin/git-branchmove | |
parent | 14578c9a122d28d36fe4213dc00449b675e02058 (diff) | |
download | dotfiles-aecda1ceb33e4b727be349b7dbf2af687955c9a4.tar.gz |
hopefully fix $rdir, $rrune settings
Diffstat (limited to 'bin/git-branchmove')
-rwxr-xr-x | bin/git-branchmove | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/git-branchmove b/bin/git-branchmove index 7eb0155d..f72ca4bf 100755 --- a/bin/git-branchmove +++ b/bin/git-branchmove @@ -105,12 +105,12 @@ if ($named_remote) { $rurl = `git ls-remote --get-url $remote`; } if ($rurl =~ m#^ssh://([^:/]+)(?:\:(\w+))?#) { - $rdir = "$'\''"; + $rdir = $'; $rrune = "ssh "; - $rrune .= " -p $3" if $2; - $rrune .= "$1"; + $rrune .= "-p $2 " if $2; + $rrune .= $1; } elsif ($rurl =~ m#^([-+_.0-9a-zA-Z\@]+):(?!//|:)#) { - $rdir = "$'\''"; + $rdir = $'; $rrune = "ssh $1"; } elsif ($rurl =~ m#^[/.]#) { $rdir = $rurl; |