Skip to content

Commit 0cbc01d

Browse files
committed
Avoid fatal error message when trying a graft cinnabarclone and the commit is not there
1 parent 81c1269 commit 0cbc01d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cinnabar/hg/repo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,8 @@ def do_cinnabarclone(repo, manifest, store):
921921
if not any(Git.iter(
922922
'rev-list', '--branches', '--tags', '--remotes',
923923
'--max-count=1', '--ancestry-path', '--stdin',
924-
stdin=(b'^%s^@' % c for c in graft))):
924+
stdin=(b'^%s^@' % c for c in graft),
925+
stderr=open(os.devnull, 'wb'))):
925926
continue
926927

927928
candidates.append((spec, len(graft) != 0))

0 commit comments

Comments
 (0)