Skip to content

Commit 55dd56e

Browse files
felipecpeff
authored andcommitted
remote-hg: try the 'tip' if no checkout present
There's no concept of HEAD in mercurial, but let's try our best to do something sensible. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Jeff King <[email protected]>
1 parent cc8433f commit 55dd56e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/remote-helpers/git-remote-hg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,8 @@ def list_head(repo, cur):
439439
# fake bookmark from current branch
440440
head = cur
441441
node = repo['.']
442+
if not node:
443+
node = repo['tip']
442444
if not node:
443445
return
444446
if head == 'default':

0 commit comments

Comments
 (0)