Set refspecs in clone so that future fetch does not need to be fast-forwarding

Bug #1731299 reported by Andreas Hasenack on 2017-11-09
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nish Aravamudan

Bug Description

I had a cloned samba repository where I decided to run "git fetch pkg", and was surprised to get rejections on branches that I never even checked out:

(ubuntu/devel)andreas@nsnx:~/git/packages/samba$ git fetch pkg
remote: Counting objects: 311, done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 311 (delta 280), reused 310 (delta 279)
Receiving objects: 100% (311/311), 310.20 KiB | 446.00 KiB/s, done.
Resolving deltas: 100% (280/280), completed with 249 local objects.
 ! [rejected] applied/debian/buster -> pkg/applied/debian/buster (non-fast-forward)
 ! [rejected] debian/buster -> pkg/debian/buster (non-fast-forward)
   7511daf27..48b55da31 debian/sid -> pkg/debian/sid
   c80fbe820..af32ae260 importer/debian/dsc -> pkg/importer/debian/dsc
   3367af40b..33a132b4d importer/debian/pristine-tar -> pkg/importer/debian/pristine-tar
 * [new tag] import/2%4.7.1+dfsg-1 -> pkg/import/2%4.7.1+dfsg-1
 * [new tag] upstream/debian/4.7.1+dfsg.gz -> pkg/upstream/debian/4.7.1+dfsg.gz

I ended up doing "git fetch pkg --force". Nish said this:

"we need to set the refspecs *in* clone so that future fetch does nnot need to be fast-forwarding"

Related branches

Nish Aravamudan (nacc) on 2017-11-09
Changed in usd-importer:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Nish Aravamudan (nacc)
milestone: none → lp-beta
Robie Basak (racb) on 2017-11-28
tags: added: clone remote
Nish Aravamudan (nacc) on 2018-01-08
Changed in usd-importer:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers