diff options
author | Florian Vallee <florian.vallee@gmail.com> | 2012-06-07 17:11:42 +0200 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2012-06-13 10:36:17 -0700 |
commit | 7cf1b36bcdc79c9239413e35b02dee54aa801a20 (patch) | |
tree | 9b51d1cac514908b2a74c046e7e28b219d106342 /subcmds/upload.py | |
parent | 5e57234ec619d0de930333a8dde3004d1dc575d6 (diff) | |
download | git-repo-7cf1b36bcdc79c9239413e35b02dee54aa801a20.tar.gz |
Detach branch even when already on the latest revision using sync -d
This patch fixes repo behaviour when running sync -d with unmodified
topic branches.
Prior to this patch sync -d would see the latest revision is already
checked out, thus staying on the branch. Since "-d" means detach we
should follow git's behaviour and actually detach from the branch in
that case.
Basic test case - after a fresh repo init + sync -
* repo start --all testdetach
* repo sync -d
* repo status
-> status shows active topic branch "testdetach",
should show :
nothing to commit (working directory clean)
Change-Id: Ic1351e6b5721b76557a51ab09f9dd42c38a4b415
Diffstat (limited to 'subcmds/upload.py')
0 files changed, 0 insertions, 0 deletions