728x90

Exception using repo sync --current-branch
작성자 3명의 게시물 8개
Luciano Carvalho
12. 5. 3.
All,

I want to thank you for the --current-branch option released with repo 1.8.2 . It reduced my workspace size from 59GB to 34GB
It's perfect if you're working with a single manifest branch.

I ran into an issue a couple times though.
When I have a project in the manifest with revision=SHA1 for example, it'll break and throw the following exception up:

Exception in thread Thread-7:
Traceback (most recent call last):
  File "/usr/local/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.5/threading.py", line 446, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/root/workspace/nr5/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
    clone_bundle=not opt.no_clone_bundle)
  File "/root/workspace/nr5/.repo/repo/project.py", line 986, in Sync_NetworkHalf
    self._InitMRef()
  File "/root/workspace/nr5/.repo/repo/project.py", line 1760, in _InitMRef
    self._InitAnyMRef(R_M + self.manifest.branch)
  File "/root/workspace/nr5/.repo/repo/project.py", line 1772, in _InitAnyMRef
    self.bare_git.UpdateRef(ref, dst, message = msg, detach = True)
  File "/root/workspace/nr5/.repo/repo/project.py", line 1946, in UpdateRef
    self.update_ref(*cmdv)
  File "/root/workspace/nr5/.repo/repo/project.py", line 2007, in runner
    p.stderr))
GitError: android/platform/cts update-ref: fatal: 0e0ff7494a35d05618923cb11586d9487cf5b62e^0: not a valid SHA1


If I'm using Jenkins' gerrit-repo plugin for example, I cannot use the manifest it generates for every build for syncing.

Thanks in advance for taking a look at it.

Luciano.


Anatol Pomazau
12. 5. 3.
Hi

- 받은메일 표시 -
This change (merged after 1.8.2 release) should fix the issue https://gerrit-review.googlesource.com/#/c/34761/
 


If I'm using Jenkins' gerrit-repo plugin for example, I cannot use the manifest it generates for every build for syncing.

Thanks in advance for taking a look at it.

Luciano.


--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

Luciano Carvalho
12. 5. 3.

Thanks.
Any plan to release a new tag soon?
1.8.2.1 maybe. :-)

- 받은메일 표시 -
kevin
12. 5. 17.
Same question here. May I know when we will have a new official release get this patch included? My team is really rely on --current-branch option to reduce the downloaded repo size and would like to have a new version of repo tool with this issue fixed ASAP. Thanks a lot.

Best regards,
Kevin
- 받은메일 표시 -
Luciano Carvalho
12. 5. 17.
+1 for a  1.8.2.1 with this fix.  :-)

Do we have more support?

Thanks
- 받은메일 표시 -
kevin
12. 6. 11.
Hello, any good news? 

Regards,
Kevin
- 받은메일 표시 -
Luciano Carvalho
12. 6. 11.

Works fine with 1.9.1 here...  its out for some time already.

- 받은메일 표시 -
Anatol Pomazau
12. 6. 13.
Hi

One more related feature that you will like has been added to the recent version of repo.

Now you can specify '--current-branch' option directly in manifest, either at per-project level or in <default> tag. Here is an example:

<default ...
    sync-c="true"/>

or 

<project name="..." sync-c="true"/>


728x90

+ Recent posts