summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-08-18 15:30:07 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-08-18 15:30:07 +0100
commit19d5fe05b5568ba5e8119f302f0bb9cbc043e732 (patch)
tree13caece350413e78d462b4d9d9709d8caca194bb /dgit
parent0f8af6bb8e37dc0fc36b327146082bd2b4363195 (diff)
When running git-add in commit-quilty-patch, properly escape filenames (which git-add treats as glob patterns).
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit3
1 files changed, 2 insertions, 1 deletions
diff --git a/dgit b/dgit
index 8f0052b..baf3096 100755
--- a/dgit
+++ b/dgit
@@ -1783,7 +1783,8 @@ sub commit_quilty_patch () {
progress "nothing quilty to commit, ok.";
return;
}
- runcmd_ordryrun_local @git, qw(add), sort keys %adds;
+ my @adds = map { s/[][*?\\]/\\$&/g; $_; } sort keys %adds;
+ runcmd_ordryrun_local @git, qw(add), @adds;
commit_admin "Commit Debian 3.0 (quilt) metadata";
}