- I have a bare repo that was cloned from git.drupal.org.
- I have cloned from this bare repo to various different websites.
- From each of these, I push a site-specific branch onto the bare repo.
E.g. if I have foo.org and bar.org, then my bare repo has drupal's branches + one called foo and one called bar.
The idea was that I could make the most of git's hard links to save disk space with local clones. I thought I would keep the bare repo fetching from git.drupal.org, and pull changes down to my local copies, foo & bar. Then when an update came along it would be easy.
bare-repo$ git fetch >/dev/null ; git branch -a
* 7.x
foo
bar
remotes/origin/7.x
remotes/origin/8.x
foo and bar started out on branch 7.x but I'd like to update them to 7.8, e.g. by git rebase 7.8
but this fails:
fatal: Needed a single revision
invalid upstream 7.8
foo and bar cannot 'see' the bare repo's remotes. What can I do?