Florian Vallee 7cf1b36bcd 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
2012-06-13 10:36:17 -07:00
2012-05-24 09:07:24 -07:00
2009-06-02 00:09:07 +02:00
2009-06-02 00:09:07 +02:00
2012-04-23 13:43:41 -07:00
2008-10-21 07:00:00 -07:00
2012-04-13 09:46:00 -07:00
2012-06-07 20:19:04 -07:00
2011-09-19 14:52:57 -07:00
2012-02-28 18:54:33 -08:00
Description
No description provided
Apache-2.0 35 MiB
Languages
Python 99.1%
Shell 0.9%