Fix path for .git directory

This commit is contained in:
blitzmann
2014-12-02 02:48:50 -05:00
parent 190c1f135f
commit 4b0e0300ad

View File

@@ -86,7 +86,7 @@ if __name__ == "__main__":
git = False
if pyfaconfig.tag.lower() == "git":
try: # if there is a git repo associated with base, use master commit
with open(os.path.join(options.base,"..",".git","refs","heads","master"), 'r') as f:
with open(os.path.join(options.base,".git","refs","heads","master"), 'r') as f:
id = f.readline()[0:6]
git = True
except: # else, use custom ID