Repo Working on Cygwin + GIT

2,238 views
Skip to first unread message

Ryan Alberts

unread,
Apr 16, 2009, 9:02:25 AM4/16/09
to Repo and Gerrit Discussion, awar...@gmail.com
Shawn,

Good news. Alex and I did some work last night and tried running
Cygwin + GIT (not the git mysys) and was able to get Repo working!

With Cygwin we used the default +
Net->curl,
Lib->libreadline5,
Python->python,
SSH,
Lib->libiconv

We were pretty excited! Anyway just wanted to share the good news
with you and anyone else that was trying to work in broken windows ;-)


--------
I get this error every once in a while when doing repo sync... but if
I run the command again it is fine. Not sure what's up there yet...
but I will continue to look at it :-)

[12:02:25 AM] youthenme: $ repo sync
Fetching projects: 66% (2/3) remote: Counting objects: 4, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
From ssh://cai...@ah-git.ptcnet.ptc.com/srv/git/playground-manifest
6d5a899..2769afe master -> origin/master
Fetching projects: 100% (3/3), done.
Updating 6d5a899..2769afe
Fast forward
cainteg-no-selenium.xml | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
create mode 100755 cainteg-no-selenium.xml
Traceback (most recent call last):
File "/home/Ryan Alberts/test/.repo/repo/main.py", line 230, in
<module>
_Main(sys.argv[1:])
File "/home/Ryan Alberts/test/.repo/repo/main.py", line 214, in
_Main
repo._Run(argv)
File "/home/Ryan Alberts/test/.repo/repo/main.py", line 121, in _Run
cmd.Execute(copts, cargs)
File "/home/Ryan Alberts/test/.repo/repo/subcmds/sync.py", line 136,
in Execut
e
self._Fetch(*missing)
File "/home/Ryan Alberts/test/.repo/repo/subcmds/sync.py", line 84,
in _Fetch
pm.end()
File "/home/Ryan Alberts/test/.repo/repo/progress.py", line 39, in
end
p = (100 * self._done) / self._total
ZeroDivisionError: integer division or modulo by zero



Shawn Pearce

unread,
Apr 16, 2009, 11:08:49 AM4/16/09
to repo-d...@googlegroups.com, awar...@gmail.com
On Thu, Apr 16, 2009 at 06:02, Ryan Alberts <ralb...@gmail.com> wrote:

Good news.  Alex and I did some work last night and tried running
Cygwin + GIT (not the git mysys) and was able to get Repo working!

Awesome!
 
With Cygwin we used the default +
  Net->curl,
  Lib->libreadline5,
  Python->python,
  SSH,
  Lib->libiconv

We were pretty excited!  Anyway just wanted to share the good news
with you and anyone else that was trying to work in broken windows ;-)

Thanks!

That's one thing I really don't miss about my prior job, needing to use Windows.  At least here I have a Linux based desktop.  :-)
 
--------
I get this error every once in a while when doing repo sync... but if
I run the command again it is fine.  Not sure what's up there yet...
but I will continue to look at it :-)

[12:02:25 AM] youthenme: $ repo sync
Fetching projects:  66% (2/3) 
...
  File "/home/Ryan Alberts/test/.repo/repo/progress.py", line 39, in
end
   p = (100 * self._done) / self._total
ZeroDivisionError: integer division or modulo by zero

Huh.  I don't see how self._total became 0.  If I read the output above correctly, it was 3.

I just put https://review.source.android.com/9548 in.  It should at least avoid the divide by zero error.  But unless I made a typo somewhere,  that sounds like Python heap corruption.  *sigh*

Alex

unread,
Apr 16, 2009, 4:30:53 PM4/16/09
to Repo and Gerrit Discussion
Here's a doosey!

I get this error consistently (so far) after running repo sync. It
appears to happen during the sync of the last project. If I
afterwords sync that indivdual project, it works fine...

Fetching projects: 100% (6/6)
Initializing project selenium-server ...
remote: Counting objects: 906, done
remote: Compressing objects: 100% (906/906)
Receiving objects: 100% (906/906), 38.96 MiB | 5860 KiB/s, done.
Resolving deltas: 100% (254/254), done.
From ssh://cai...@ah-git.ptcnet.ptc.com:29418/selenium-server
* [new branch] master -> origin/master
Fetching projects: 100% (6/6), done.
Checking out files: 100% (522/522), done.ut files: 35% (185/522)
1 [main] git 11184 C:\cygwin\bin\git.exe: *** fatal error -
could not load shell32, Win32 error 487
Traceback (most recent call last):
File "/cygdrive/d/dev/src/selenium_repo/.repo/repo/main.py", line
230, in <module>
_Main(sys.argv[1:])
File "/cygdrive/d/dev/src/selenium_repo/.repo/repo/main.py", line
214, in _Main
repo._Run(argv)
File "/cygdrive/d/dev/src/selenium_repo/.repo/repo/main.py", line
121, in _Run
cmd.Execute(copts, cargs)
File "/cygdrive/d/dev/src/selenium_repo/.repo/repo/subcmds/sync.py",
line 135, in Execute
project.Sync_LocalHalf(syncbuf)
File "/cygdrive/d/dev/src/selenium_repo/.repo/repo/project.py", line
575, in Sync_LocalHalf
self._InitWorkTree()
File "/cygdrive/d/dev/src/selenium_repo/.repo/repo/project.py", line
1025, in _InitWorkTree
raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree

Any thoughts?

On Apr 16, 10:08 am, Shawn Pearce <s...@google.com> wrote:
> I just puthttps://review.source.android.com/9548in.  It should at least

Alex

unread,
Apr 16, 2009, 4:32:56 PM4/16/09
to Repo and Gerrit Discussion
Here's a doosey!

I get this error consistently (so far) after running repo sync. It
appears to happen during the sync of the last project. If I
afterwords sync that indivdual project, it works fine...

Fetching projects: 100% (6/6)
Initializing project selenium-server ...
remote: Counting objects: 906, done
remote: Compressing objects: 100% (906/906)
Receiving objects: 100% (906/906), 38.96 MiB | 5860 KiB/s, done.
Resolving deltas: 100% (254/254), done.
From ssh://cai...@ah-git.ptcnet.ptc.com:29418/selenium-server
* [new branch] master -> origin/master
Fetching projects: 100% (6/6), done.
Checking out files: 100% (522/522), done.ut files: 35% (185/522)
1 [main] git 11184 C:\cygwin\bin\git.exe: *** fatal error -
could not load shell32, Win32 error 487
Traceback (most recent call last):
File "/cygdrive/d/dev/src/selenium_repo/.repo/repo/main.py", line
230, in <module>
_Main(sys.argv[1:])
File "/cygdrive/d/dev/src/selenium_repo/.repo/repo/main.py", line
214, in _Main
repo._Run(argv)
File "/cygdrive/d/dev/src/selenium_repo/.repo/repo/main.py", line
121, in _Run
cmd.Execute(copts, cargs)
File "/cygdrive/d/dev/src/selenium_repo/.repo/repo/subcmds/sync.py",
line 135, in Execute
project.Sync_LocalHalf(syncbuf)
File "/cygdrive/d/dev/src/selenium_repo/.repo/repo/project.py", line
575, in Sync_LocalHalf
self._InitWorkTree()
File "/cygdrive/d/dev/src/selenium_repo/.repo/repo/project.py", line
1025, in _InitWorkTree
raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree

Any thoughts?

On Apr 16, 10:08 am, Shawn Pearce <s...@google.com> wrote:
> I just puthttps://review.source.android.com/9548in.  It should at least

Shawn Pearce

unread,
Apr 16, 2009, 4:38:05 PM4/16/09
to repo-d...@googlegroups.com
On Thu, Apr 16, 2009 at 13:30, Alex <awar...@gmail.com> wrote:

Here's a doosey!
...
     1 [main] git 11184 C:\cygwin\bin\git.exe: *** fatal error -
could not load shell32, Win32 error 487

Oh, how I don't miss Cygwin.

It couldn't spawn git.exe. 

Google search for that error suggests things like http://www.cygwin.com/ml/cygwin/2007-07/msg00858.html ...  :-(

Alex

unread,
Apr 16, 2009, 5:00:04 PM4/16/09
to Repo and Gerrit Discussion
Cygwin problem (well, sortof)....

See the part titled "Windows Users"

http://wiki.videolan.org/Git#Using_Git_to_push_to_VideoLAN_git

On Apr 16, 3:30 pm, Alex <awardd...@gmail.com> wrote:
> Here's a doosey!
>
> I get this error consistently (so far) after running repo sync.  It
> appears to happen during the sync of the last project.  If I
> afterwords sync that indivdual project, it works fine...
>
> Fetching projects: 100% (6/6)
> Initializing project selenium-server ...
> remote: Counting objects: 906, done
> remote: Compressing objects: 100% (906/906)
> Receiving objects: 100% (906/906), 38.96 MiB | 5860 KiB/s, done.
> Resolving deltas: 100% (254/254), done.
> From ssh://cain...@ah-git.ptcnet.ptc.com:29418/selenium-server
Reply all
Reply to author
Forward
0 new messages