Skip to content

Commit

Permalink
Fix concat tool
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAMM committed Sep 29, 2018
1 parent 9ab971e commit 472281e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions concat_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,11 @@ def plain_concat(self):


def _create_version_metafile(config, config_dirname):
repo_dir = os.path.join(config_dirname, config.get('repo_dir', ''))
repo_dir = os.path.join(config_dirname, config.get('repo_dir', '.'))
try:
git_branch = subprocess.check_output(['git', '-C', repo_dir, 'symbolic-ref', '--short', '-q', 'HEAD'], stderr=subprocess.DEVNULL).decode().strip()
git_commit = subprocess.check_output(['git', '-C', repo_dir, 'rev-parse', '--short', '-q', 'HEAD'], stderr=subprocess.DEVNULL).decode().strip()
except:
except Exception as e:
git_branch = None
git_commit = None

Expand Down

0 comments on commit 472281e

Please sign in to comment.