fetch: add support for the traditional FETCH_HEAD behavior
commit6e4aa389051794a2ead58fdadfc5fd76dbd3374d
authorDavid Aguilar <davvid@gmail.com>
Tue, 12 Mar 2024 07:27:20 +0000 (12 00:27 -0700)
committerDavid Aguilar <davvid@gmail.com>
Tue, 12 Mar 2024 08:05:10 +0000 (12 01:05 -0700)
tree4c1111bd18c8fba2eadd5a207bc4157d04a735c4
parent86879f43a11e32cfbfe5f883eb2c8d5995b5265d
fetch: add support for the traditional FETCH_HEAD behavior

Special-case FETCH_HEAD for anonymous fetching into an ephemeral ref.
This allows users to get the original behavior before we defaulted to
fetching into remote tracking branches directly.

Related-to: #729
Signed-off-by: David Aguilar <davvid@gmail.com>
CHANGES.rst
cola/models/main.py
cola/widgets/remote.py
test/main_model_test.py