My CI pushes some generate files to <current branch/tag>-deploy branches/tags. Usually I don't want to fetch them, so I added two negative fetch refspecs:
For example, git clone https://github.com/Frederick888/playground.git; cd playground; git reset --hard HEAD~, then without the negative refspecs, the response is:
My CI pushes some generate files to
<current branch/tag>-deploy
branches/tags. Usually I don't want to fetch them, so I added two negative fetch refspecs:This breaks
gitstatus
.For example,
git clone https://github.com/Frederick888/playground.git; cd playground; git reset --hard HEAD~
, then without the negative refspecs, the response is:With the negative refspecs, the response is: