Re: Initial support for cloning submodules

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <skimo@...>
Cc: <git@...>
Date: Saturday, May 5, 2007 - 4:46 am

Sven Verdoolaege <skimo@kotnet.org> writes:


 - Figuring out the name of the new directory we create (think
   "git clone git://repo.or.cz/git.git" -- it does "mkdir git &&
   cd git" for you before doing the other things).

 - Run "git init" there, obviously.

 - Probably run "git ls-remote" to figure out which branch HEAD
   should point at; you would definitely want to add a mechanism
   to pass the ls-remote result to the "git fetch" you are going
   to call next, as it is the first thing "git fetch" usually
   does -- we would want to reuse it.

 - Recently suggested good addition is to have "--track $branch"
   option to "git clone" to point remotes/origin/HEAD to
   something other than what the remote's HEAD actually points
   at (the discussion was primarily between Carl Worth and
   Linus; see archive).

 - Run "git remote add origin" with the given URL to set up the
   standard "separate remotes" tracking structure.

 - Run "git fetch" for initial fetch ("git remote add -f" could
   do that as well).  You would probably need to pass --tags to
   this "git fetch" to mimick what "git clone" does today.

 - Run initial checkout if asked.


Most likely yes but that is just my gut feeling -- I readily
admit I haven't thought it through.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Initial support for cloning submodules, Sven Verdoolaege, (Fri May 4, 6:56 am)
Re: Initial support for cloning submodules, Junio C Hamano, (Fri May 4, 6:52 pm)
Re: Initial support for cloning submodules, Sven Verdoolaege, (Fri May 18, 3:33 pm)
Re: Initial support for cloning submodules, Sven Verdoolaege, (Sat May 5, 4:14 am)
Re: Initial support for cloning submodules, Alon Ziv, (Sun May 6, 12:13 am)
Re: Initial support for cloning submodules, Junio C Hamano, (Sat May 5, 4:46 am)
[PATCH 1/5] Add dump-config, Sven Verdoolaege, (Fri May 4, 6:56 am)
[PATCH 4/5] git-config: read remote config files over HTTP, Sven Verdoolaege, (Fri May 4, 6:56 am)