OSDN Git Service

Merge branch 'master' of git://github.com/git-l10n/git-po
[git-core/git.git] / git-cvsimport.perl
index 3692992..2d8df83 100755 (executable)
@@ -642,7 +642,7 @@ sub is_sha1 {
 
 sub get_headref ($) {
        my $name = shift;
-       $name =~ s/'/'\\''/;
+       $name =~ s/'/'\\''/g;
        my $r = `git rev-parse --verify '$name' 2>/dev/null`;
        return undef unless $? == 0;
        chomp $r;