Skip to content

Commit 678e8ea

Browse files
committed
Add output for crashed git pull operations
1 parent 42595d0 commit 678e8ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

github2pandas/version.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,10 @@ def clone_repository(repo, data_root_dir, github_token=None, new_clone=False):
135135
old_path = Path.cwd()
136136
os.chdir(repo_dir)
137137
try:
138-
subprocess.check_output(["git", "pull"])
138+
git2output = subprocess.check_output(["git", "pull"])
139139
except:
140140
print("This repository is empty, git pull generates an error")
141+
print('git said:', git2output)
141142
os.chdir(old_path)
142143
return
143144

0 commit comments

Comments
 (0)