Hi,
I want to create a mirror from the rowboat repository where our developers can clone their own repository from.To test this, I tried first to create a "local server" and created a clone from that. Everything seems to work fine except when I try to push changes back to the local server. Then I get the error message: No origin was found for working tree ...
Here is what I did:
1) I created a mirror:
# cd /usr/repositories/android/rowboat
# repo init -u git://gitorious.org/rowboat/manifest.git -m TI-Android-GingerBread-2.3-DevKit-1.0.xml --mirror
# repo sync
2) I changed the manifest file to point to the local path:
clone manifest.git from /usr/repositories/android/rowboat/manifest.git (with graphic git tool)
change TI-Android-GingerBread-2.3-DevKit-1.0.xml:
- <remote fetch="git://gitorious.org/rowboat" name="rowboat"/>
+ <remote fetch="/usr/repositories/android/rowboat" name="rowboat"/>
<default remote="rowboat" revision="rowboat-gingerbread"/>
link default.xml to TI-Android-GingerBread-2.3-DevKit-1.0.xml
commit changes and push them to the local server.
3) Now clone the repositories (=developer view):
# cd /usr/repositories/developer
# repo init -u /usr/repositories/android/rowboat/manifest.git -m TI-Android-GingerBread-2.3-DevKit-1.0.xml
# repo sync
When I now made changes for example to the bionic repository and after a commit tried to push them, I get the message:
No origin was found for working tree /usr/repositories/developer/bionic
When I only clone the same repository with git only (not using repo), I do not have this problem.
Any advice what I'm doing wrong?