We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e3ce0e commit 44bc494Copy full SHA for 44bc494
.githooks/pre-commit
@@ -17,8 +17,8 @@ set -e
17
then
18
echo "CHANGED: ${item}" >> .pre-commit.state.log
19
CHANGED["${item}"]="${item}.$(uuidgen)"
20
- cp -a "${item}" "${CHANGED["${item}"]}"
21
- cp -a "${item}" "${item}.template"
+ cp "${item}" "${CHANGED["${item}"]}"
+ cp "${item}" "${item}.template"
22
git add "${item}.template"
23
# change file as needed
24
sed -i "s:@branch@:${BRANCH}:g" "${item}"
0 commit comments