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

added variable to get the full path of the .git directory #31

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

Conversation

afcuttin
Copy link

@afcuttin afcuttin commented Sep 2, 2020

I've added an additional GINDIR variable so that the script knows where the .git folder is if it is called not from the root folder of the project.

This solves the problem I've encountered while using gitinfo2 together with git-subrepo, as documented here: ingydotnet/git-subrepo#499

I've added an additional `GINDIR` variable so that the script knows where the `.git` folder is if it is called not from the root folder of the project.

This solves the problem I've encountered while using `gitinfo2` together with `git-subrepo`, as documented here: ingydotnet/git-subrepo#499
@@ -28,4 +30,4 @@ git --no-pager log -1 --date=short --decorate=short \
refnames={%d},
firsttagdescribe={$FIRSTTAG},
reltag={$RELTAG}
]{gitexinfo}" HEAD > .git/gitHeadInfo.gin
]{gitexinfo}" HEAD > $GINDIR/gitHeadInfo.gin
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"$GINDIR" should be used, to allow for path with spaces

@koppor
Copy link

koppor commented Mar 13, 2022

Please note that according to CTAN the original maintainer passed away: https://ctan.org/author/longborough. 🖤

Since the package is released as LPPL, one can take over maintainer ship. - Maybe you would like to take over? 🤩

@josephwright
Copy link

This repository is no longer active: please re-report issues at https://github.com/josephwright/gitinfo2/issues

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.

4 participants