Reputation: 71
I have a repo that I've cloned locally using git clone --bare
When doing a git pull
or a git fetch
, I receive the following error on all the branches, here's the prod branch for example:
error: * Ignoring funny ref 'refs/remotes/origin//production' locally
I imagine it's the double slashes that are messing it up, but I'm not sure. How would I be able to fix this so that the path is not malformed locally, and I don't have to run off to my principal and argue with them about our git practices?
Upvotes: 2
Views: 781
Reputation: 265918
Try to fetch the ref explicitly:
git fetch origin +refs/heads//production:refs/remotes/origin/funny-production
Or add it to your .git/config
file for the "origin" remote:
[remote "origin"]
url = …
fetch = +refs/heads/*:refs/remotes/origin/*
fetch = +refs/heads//production:refs/remotes/origin/funny-production
Upvotes: 1