From 74fde34e9889848ac176eb6369c7311d286ac63c Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 28 Jul 2019 10:21:44 +0100 Subject: shorten some code in git-branchmove --- bin/git-branchmove | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/git-branchmove') diff --git a/bin/git-branchmove b/bin/git-branchmove index b34c5bc8..5c9f29bb 100755 --- a/bin/git-branchmove +++ b/bin/git-branchmove @@ -121,7 +121,7 @@ if ($rurl =~ m#^ssh://([^:/]+)(?:\:(\w+))?#) { # If we don't prefix the patterns, we might match branches the user # doesn't intend. E.g. 'foo' would match 'wip/foo' -my @branch_pats = map { $_ =~ s|^|[r]efs/heads/|; $_ } @patterns; +my @branch_pats = map { s|^|[r]efs/heads/|r } @patterns; # get lists of branches, prefixed with 'refs/heads/' in each case my @source_branches, my @dest_branches; -- cgit v1.2.3