git-svn: fix clone when a target directory has been specified
commitf30603fcf37f44942a2173386c0f580a508158df
authorEric Wong <normalperson@yhbt.net>
Fri, 23 Feb 2007 09:26:26 +0000 (23 01:26 -0800)
committerEric Wong <normalperson@yhbt.net>
Fri, 23 Feb 2007 09:26:26 +0000 (23 01:26 -0800)
treef61c02fff9b930734f2a606158ce33eae99a55d6
parenta0d7fe3fcd790876e510c11459df95a0d595e2ad
git-svn: fix clone when a target directory has been specified

Several bugs caused this to fail:

* GIT_DIR was set incorrectly after entering the target directory

* Avoid double chdir-ing when clone is called with an explicit path

* create target subdirectory *before* running git-init when using
  the multi-init path

Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl