Git development
 help / color / mirror / Atom feed
* Bug? - Unexpected lock file error
@ 2008-09-05 23:22 Eric Raible
  2008-09-05 23:47 ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Eric Raible @ 2008-09-05 23:22 UTC (permalink / raw)
  To: Git Mailing List

In playing around with creating new unatached branches
I came across a seemingly bogus
"fatal: unable to create '.git/index.lock': File exists"
error message.

Now I understand that the final merge below is a no-op at best
but the resulting error message is less than intuitive.

This is in "git version 1.6.0.1.319.g9f32b.dirty"
(msysgit/devel, but I doubt that makes a difference).

Comments?

# Make a couple of versions of 'a' in main repo
mkdir foo
cd foo
git init -q
touch a
for i in a b c; do echo $i > a && git add a && git commit -q -m $i; done

# Make a new repo and push it into main repo (to make an unattached branch)
mkdir empty
cd empty
git init -q
git commit -q --allow-empty -m empty
git push .. master:empty

# Trigger "fatal: unable to create '.git/index.lock': File exists" error
cd ..
git merge empty

If 'empty' has any commits then the merge happens as expected.
Is this just another special case involving initial commits that I
should just get over?  Or is there something more substantive
going on here?

- Eric

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-09-07  5:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-05 23:22 Bug? - Unexpected lock file error Eric Raible
2008-09-05 23:47 ` Junio C Hamano
2008-09-06  0:05   ` Eric Raible
2008-09-06  0:09   ` Junio C Hamano
2008-09-06  2:12     ` Miklos Vajna
2008-09-06 16:29       ` [PATCH] builtin-merge: release the lockfile in try_merge_strategy() Miklos Vajna
2008-09-07  5:44         ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox