Skip to content
This repository has been archived by the owner on Apr 10, 2019. It is now read-only.

Using this hook for the first commit does not give clear user feedback #1

Open
joshuatcasey opened this issue Sep 20, 2018 · 0 comments

Comments

@joshuatcasey
Copy link
Owner

SHA: f0fe6ef

Setup: Making first commit in fresh directory

Replication:

mkdir temp
cd temp
git init
curl https://raw.githubusercontent.com/jCaseyPivotal/tracker-id-prepare-commit-msg-hook/master/prepare-commit-msg > ./.git/hooks/prepare-commit-msg
chmod +x ./.git/hooks/prepare-commit-msg
touch a
git add a
git commit

Output:

Last commit message:
--- --- ---
fatal: your current branch 'master' does not have any commits yet
--- --- ---
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant