Open devinrhode2 opened 4 years ago
I had the same problems with tags and I commented them. Then I run into the same problem "not something we can merge". Seems to be a git problem rather than a problem with this script.
Try git checkout dev-scripts/myco
- it fails with
error: pathspec 'dev-scripts/myco' did not match any file(s) known to git
It might be a timing problem because in one instance I was able to run this git merge command myself and it did work, but I could not run the rest of the script.
If you cd to the tmpdir you will see a .git folder there so it is a valid remote. I'm not sure why git cannot recognise it as a remote though. Edited to add: git remote -v
also lists the remote correctly.
I'm on Git 2.21.0
@curioustechizen you could use git subrepo in a unique way. Convert the submodules to git-subrepo, but, I've had poor performance pushing/pulling to the "child repo" repositories. Since you are trying to move away from submodules, you simply deprecate/never push/pull to the child-repo's origin.
With that approach, no developers actually need to know about or use git-subrepo. It's simply used one time to convert from submodules. In theory you could also remove the .gitrepo files, but I think it'd be better to keep them
I had the same problem with tags, and i commented out those lines. However it turned out, that line is also needed to merge the normal files. So the script is fine, but if you want to remove adding the tags, do not comment out the whole git fetch --tags
lines. Just only remove the --tags
flag from the lines!
Also had this happen with a similar submodule that was in the root. Before I ran this I commented out this
git fetch --tags "${sub}
line as it caused issues during previous attempts