Skip to content

Commit

Permalink
remote-hg: try the 'tip' if no checkout present
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Contreras authored and Jeff King committed Nov 12, 2012
1 parent cc8433f commit 55dd56e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/remote-helpers/git-remote-hg
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 55dd56e

Please sign in to comment.