-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Set GIT_DIR correctly if it is not set #15751
Conversation
Fix go-gitea#15744 Signed-off-by: Andrew Thornton <[email protected]>
Signed-off-by: Andrew Thornton <[email protected]>
Using https://github.com/lithammer/dedent would be even nicer 😉 |
I think the first commit was nice to see the diff itself, and how it is formatted now is totally fine. to "dedent": I think we should not add to much boilerplate ... |
Yes the diff is kind of destroyed with the reformatting. Dedent is optional but I still think worth it because code is much more often read than written and that's just more pleasureable if properly indented :) |
A go-template or even destroy these hook files and make them unnecessary by using core.hooksPath cleverly. |
* Set GIT_DIR correctly if it is not set * Expand out templates Signed-off-by: Andrew Thornton <[email protected]>
-> #15769 |
* Set GIT_DIR correctly if it is not set * Expand out templates Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: zeripath <[email protected]>
* Set GIT_DIR correctly if it is not set * Expand out templates Signed-off-by: Andrew Thornton <[email protected]>
Fix #15744
Signed-off-by: Andrew Thornton [email protected]