Skip to content

Commit 6bb4c7f

Browse files
committed
check if repository still exists
1 parent e113782 commit 6bb4c7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

git-pull-request

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ def fetch(repo, pullreq):
149149

150150
data = json.loads(data)
151151
pr = data
152+
if pr['head']['repo'] == None:
153+
print("remote repository for this pull request "
154+
"does not exist anymore.")
155+
return 6
152156
display(pr)
153157

154158
local = 'pull-request-%s' % (pullreq)

0 commit comments

Comments
 (0)