?

Log in

No account? Create an account

git

« previous entry | next entry »
Mar. 27th, 2007 | 12:34 am

Imagine you have the following tree with two similarly named git repositories:
  • mozilla
    • mozilla
    • mozilla.git


If you do git clone git+ssh://.../mozilla/mozilla/ which repository do you pull from?

If you answered mozilla.git, you win.

I unfortunately lose because it took me a long time to figure out that's why my cloned trees were wrong, git was silently pulling from "mozilla.git", even though I was asking for "mozilla". It might've been nice if git-clone actually reported which remote directory it was actually pulling from.
Tags:

Link | Leave a comment | Share

Comments {0}