We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b47dfe9 commit 17f26a9Copy full SHA for 17f26a9
git-am.sh
@@ -38,7 +38,7 @@ sq () {
38
for sqarg
39
do
40
printf "%s" "$sqarg" |
41
- sed -e 's/'\''/'\''\'\'''\''/g' -e 's/.*/ '\''&'\''/'
+ sed -e 's/'\''/'\''\\'\'''\''/g' -e 's/.*/ '\''&'\''/'
42
done
43
}
44
t/t4252-am-options.sh
@@ -58,4 +58,12 @@ test_expect_success 'interrupted am --directory="frotz nitfol"' '
58
grep One "frotz nitfol/file-5"
59
'
60
61
+test_expect_success 'apply to a funny path' '
62
+ with_sq="with'\''sq"
63
+ rm -fr .git/rebase-apply &&
64
+ git reset --hard initial &&
65
+ git am --directory="$with_sq" "$tm"/am-test-5-2 &&
66
+ test -f "$with_sq/file-5"
67
+'
68
+
69
test_done
0 commit comments