Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
use git rev-parse --git-dir instead of just .git/ #16
Conversation
added some commits
Dec 14, 2015
|
I've had part of this .git directory problem fixed for ages. I'd suggest using my patches as a base. I cherry-picked two of them to my feature/fixes branch: I'm not able to create a pull request from as my repo is not a "Github fork" of git-buildpackage but the commits I'm talking about are: Those should fix the "buildpackage" case. Pq would need to be fixed in a similar way, i.e. by using GitRepository.git_dir as the basedir. |
nacc
commented
Oct 28, 2016
|
@nacc fixed now. If you have issues with GIT_WORK_TREE still please provide steps to reproduce so we can turn it into a testcase. We have one for @barak 's submodule case here: https://github.com/agx/git-buildpackage/blob/master/tests/component/deb/test_import_orig.py#L303 Thanks @marquiz for the patches. I've modified the first one since we don't want gbp to use subdirs just yet. |
barak commentedDec 14, 2015
Sometimes git submodules have a redirection pointer in their .git instead of a directory.
This code (which should probably be refactored, migrated into a gitDir function, sanity checked, etc) addresses that issue.
See bug https://bugs.debian.org/674015