Commit 83d54220 authored by Michele Carignani's avatar Michele Carignani
Browse files

fix issue with subprocess/popen

parent 56df6ae0
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -127,7 +127,10 @@ def get_git_log(folder: str):
    os.chdir(folder)
    gitcmd = ['git', 'log', '-n', '1', '--oneline', '--decorate']
    
    gitlog = subprocess.run(gitcmd, check=True, stdout=subprocess.PIPE, text=True).stdout
    gitlog = subprocess.run(gitcmd, check=True, stdout=subprocess.PIPE).stdout
    
    if not isinstance(gitlog, str):
        gitlog = str(gitlog)

    os.chdir(current_dir)