diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-01-11 20:01:03 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-01-11 20:01:03 +0200 |
commit | 41b0107afe3fb9265370f6bc701ecdbe462751c2 (patch) | |
tree | b47c58825e23566df010210f0b2929899facaf6f | |
parent | c4abd42546e645ed10b8efea4c2839fe0ecd83d1 (diff) | |
download | wumpus-hunter-41b0107afe3fb9265370f6bc701ecdbe462751c2.tar.gz |
feat: don't log "git show" calls
Signed-off-by: Lars Wirzenius <liw@liw.fi>
-rwxr-xr-x | wumpus-hunter | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wumpus-hunter b/wumpus-hunter index 91e3578..c6e5d83 100755 --- a/wumpus-hunter +++ b/wumpus-hunter @@ -511,7 +511,8 @@ def git(run_log, *args, cwd=None): def run(run_log, argv, cwd=None): p = subprocess.run(argv, cwd=cwd, capture_output=True) - run_log.runcmd(argv, p.returncode, p.stdout.decode(), p.stderr.decode()) + if run_log is not None: + run_log.runcmd(argv, p.returncode, p.stdout.decode(), p.stderr.decode()) if p.returncode != 0: raise Exception(f"command {argv} failed") return p.stdout.decode() @@ -558,7 +559,7 @@ def run_log_name(dirname, commit, succeeded): def git_commit_date(run_log, dirname, commit): try: out = git( - run_log, + None, "show", "--pretty=fuller", "--date=iso", |