Commit ·
fae37a0
1
Parent(s): 40ebbcf
Update get_commits.py
Browse files23 unmodified lines24252627282923 unmodified linescompleted = run_in_shell("git init", cwd=cwd)completed = run_in_shell("git remote add origin " + repo, cwd=cwd)completed = run_in_shell("git fetch --depth 2 origin " + commit, cwd=cwd)completed = run_in_shell("git checkout FETCH_HEAD -- " + new_file, cwd=cwd)new_contents = run_in_shell("cat " + new_file, cwd=cwd).stdout.decode()completed = run_in_shell("git checkout FETCH_HEAD^ -- " + old_file, cwd=cwd)23 unmodified lines2425262728293031323323 unmodified linescompleted = run_in_shell("git init", cwd=cwd)completed = run_in_shell("git remote add origin " + repo, cwd=cwd)completed = run_in_shell("git fetch --depth 2 origin " + commit, cwd=cwd)# If it times out as repo requires a usernameif completed.returncode != 0:return (new_contents, "")old_contents = run_in_shell("cat " + old_file, cwd=cwd).stdout.decode()completed = run_in_shell("git checkout FETCH_HEAD -- " + new_file, cwd=cwd)new_contents = run_in_shell("cat " + new_file, cwd=cwd).stdout.decode()completed = run_in_shell("git checkout FETCH_HEAD^ -- " + old_file, cwd=cwd)
get_commits.py+4