author | Ping Yin <pkufranky@gmail.com> | |
Fri, 26 Sep 2008 15:33:23 +0000 (23:33 +0800) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 29 Sep 2008 15:24:19 +0000 (08:24 -0700) | ||
commit | b9b378a001d35a64a30a652a45f8084ee2be6cdf | |
tree | 339ecad79fa3f4dfbbb8b9a073fca52ce82f3e2a | tree | snapshot |
parent | 2a79d2f662a5a82a6cfcfd2a0d980e7b1875f320 | commit | diff |
git-submodule: Fix "Unable to checkout" for the initial 'update'
Since commit 55218("checkout: do not lose staged removal"), in
cmd_add/cmd_update, "git checkout <commit>" following
"git clone -n" may fail if <commit> is different from HEAD.
So Use "git checkout -f <commit>" to fix this.
Signed-off-by: Ping Yin <pkufranky@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Since commit 55218("checkout: do not lose staged removal"), in
cmd_add/cmd_update, "git checkout <commit>" following
"git clone -n" may fail if <commit> is different from HEAD.
So Use "git checkout -f <commit>" to fix this.
Signed-off-by: Ping Yin <pkufranky@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-submodule.sh | diff | blob | history |