This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Creating a mirror from rowboat repository

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?

  • Though I never tried this way, just a thought: have you tried to push to rowboat instread of origin, something similar to 'git push rowboat ...'?

    Another issue might be: the manifest you are using TI-Android-Gingerbread-2.3-Devkit-1.0.xml is a snapshot of the repository, in which the HEAD of each project points to a specific commit ID, so try to play with the git push command.

  • Using git push rowboat indeed worked. Although I had in the graphical git tool a local branch tracking the remote branch, it kept pushing to origin. Maybe a bug in that tool.

    Thanks