From: Junio C Hamano Date: Thu, 23 Jun 2011 05:35:17 GMT Subject: Re: [PATCH] git-remote.txt: fix wrong remote refspec Message-ID: <7viprx3yay.fsf@alter.siamese.dyndns.org> In-Reply-To: <1308804319-6354-1-git-send-email-namhyung@gmail.com> Namhyung Kim writes: > $GIT_DIR/remotes//HEAD should be > $GIT_DIR/refs/remotes//HEAD. > > Signed-off-by: Namhyung Kim > --- Obviously correct; thanks. There is another questionable one you did not touch, though. With `-t ` option, instead of the default glob refspec for the remote to track all branches under `$GIT_DIR/remotes//`, a refspec to track only `` is created. You can give more than one `-t ` to track multiple branches without grabbing all branches. The above says "$GIT_DIR/remotes//", but it should say ... all branches under refs/remotes// namespace,... Also we should try to see if we can come up with a way to say the things the part your patch touched describe _without_ mentioning $GIT_DIR at all. "Store in $GIT_DIR/refs/$X" talks too much about the implementation detail that the ref in question is implemented as a loose ref. We would pack it into a single entry in $GIT_DIR/packed-refs file when we run gc, and at that point "$GIT_DIR/refs/$X" is no longer a correct description.