diff options
author | Nikola Knezevic <nikola@knezevic.ch> | 2020-05-30 12:33:38 +0200 |
---|---|---|
committer | Nikola Knezevic <nikola@knezevic.ch> | 2020-05-30 12:33:38 +0200 |
commit | fb38459d6e58508245553380cccc03c0dbaa1542 (patch) | |
tree | 165dd31244da093d4e67b8c14f4716dea23c2012 /src/libstore/local-binary-cache-store.cc | |
parent | 77007d4eabcf7090d1d3fbbdf84a67fb2262cf78 (diff) |
Ensure we restrict refspec interpretation while fetching
As `git fetch` may chose to interpret refspec to it's liking, ensure that we
only pass refs that begin with `refs/` as is, otherwise, prepend them with
`refs/heads`. Otherwise, branches named `heads/foo` (I know it's bad, but it's
allowed), would be fetched as `foo`, instead of `heads/foo`.
Diffstat (limited to 'src/libstore/local-binary-cache-store.cc')
0 files changed, 0 insertions, 0 deletions