mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2026-02-14 17:16:47 +01:00
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 <felipe.contreras@gmail.com> Signed-off-by: Jeff King <peff@peff.net>
This commit is contained in:
@@ -439,6 +439,8 @@ def list_head(repo, cur):
|
||||
# fake bookmark from current branch
|
||||
head = cur
|
||||
node = repo['.']
|
||||
if not node:
|
||||
node = repo['tip']
|
||||
if not node:
|
||||
return
|
||||
if head == 'default':
|
||||
|
||||
Reference in New Issue
Block a user