Skip to content

Commit 472281e

Browse files
committed
Fix concat tool
1 parent 9ab971e commit 472281e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

concat_files.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,11 @@ def plain_concat(self):
247247

248248

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

0 commit comments

Comments
 (0)