Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix instruction order on "Co-authored-by" support #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bengtrj
Copy link

@bengtrj bengtrj commented Oct 18, 2018

I might be wrong, but I think the order needs to be changed. In my mac it only worked after running git init and then git duet. It might be related to the hook file.
May I suggest a diagram/state-machine on how the whole thing works? Thanks!

I might be wrong, but I think the order needs to be changed. In my mac it only worked after running `git init` and then `git duet`. It might be related to the hook file.
May I suggest a diagram/state-machine on how the whole thing works? Thanks!
@ansd
Copy link
Contributor

ansd commented Oct 18, 2018

@bengtrj, the documentation assumes that your current working directory is an existing git repo. (Maybe that's the part which is missing in the docs?)

You first run git duet in that repo.

If GIT_DUET_GLOBAL is set, it will install the hook into $HOME/.git-template which requires you to run git init subsequently in order to copy the hook file from $HOME/.git-template into your git repo. (Running git init here does not initialise an empty repo but rather reinitialises your existing repo.)

If GIT_DUET_GLOBAL is not set, there is no need to run git init because the hook gets installed directly into your git repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants