Git::unquote_path(): handle '\a'
[gitweb.git] / perl / Git.pm
index cf7a7e6a516c4a2802908dd8ce7971fc52bb7e30..3179e6efb29a1a88df8f90aa458fbe5f9a41d419 100644 (file)
@@ -1461,6 +1461,7 @@ sub prefix_lines {
 
 {
        my %cquote_map = (
+               "a" => chr(7),
                "b" => chr(8),
                "t" => chr(9),
                "n" => chr(10),
@@ -1487,7 +1488,7 @@ sub prefix_lines {
                                        $_ = $2;
                                        last;
                                }
-                               if (/^([\\\042btnvfr])(.*)$/) {
+                               if (/^([\\\042abtnvfr])(.*)$/) {
                                        $retval .= $cquote_map{$1};
                                        $_ = $2;
                                        last;