You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: init.sh
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -15,14 +15,17 @@ fi
15
15
then
16
16
echo".git/hooks/pre-commit exists. Appending to it..."
17
17
cat >> .git/hooks/pre-commit <<EOF
18
-
echo "Storing files' timestamp and other metadata..." && bash .git/hooks/git-meta.sh --store && git add .gitmeta && echo "Done. Meta has been preserved!"
18
+
#!/bin/bash
19
+
20
+
echo "Storing files' timestamp and other metadata..." && ls && bash .git/hooks/git-meta.sh --store && git add .gitmeta && echo "Done. Meta has been preserved!"
echo "Storing files' timestamp and other metadata..." && ls && bash .git/hooks/git-meta.sh --store && git add .gitmeta && echo "Done. Meta has been preserved!"
0 commit comments