Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
remote-hg: try the 'tip' if no checkout present
[gitweb.git]
/
contrib
/
remote-helpers
/
git-remote-hg
diff --git
a/contrib/remote-helpers/git-remote-hg
b/contrib/remote-helpers/git-remote-hg
index bf5e5b473d39f95d0cfb7a42aacdcd2761d59734..a9a1e8fa584e981db5cdb9ea201dbea70f97127d 100755
(executable)
--- a/
contrib/remote-helpers/git-remote-hg
+++ b/
contrib/remote-helpers/git-remote-hg
@@
-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':