#180: Git source, remote repository - Status 128 on everything
---------------------------+------------------------------------------------
 Reporter:  MichaelRaskin  |       Owner:  lele      
     Type:  defect         |      Status:  new       
 Priority:  major          |   Milestone:  VersionOne
Component:  tailor         |     Version:  0.9       
 Keywords:  git, source    |  
---------------------------+------------------------------------------------
 I try to port remote git repository to monotone. I do the simplest thing
 possible for that and I get [Status 128] on fetch: git cannot find
 git://git.savannah.nongnu.org/stumpwm.git/objects as a local file.

 Reason: {{{ GIT_DIR=git://git.savannah.nongnu.org/stumpwm.git }}}
 environment variable is set in tailor/vcpx/repository/git/__init__.py,
 line 58. [[BR]]
 {{{             self.env['GIT_DIR'] = self.storagedir }}}

 Proof/temporary workaround: I made a wrapper for git doing [[br]]
 {{{/var/run/current-system/sw/bin/env -i /var/run/current-
 system/sw/bin/git "$@" }}} [[br]] (/var/run/current-system/sw/bin contains
 symlinks to all relevant executables), and tailor works OK.

 Possible ways to fix: [[BR]]
 1) Add an option not to set environment variables [[br]]
 2) Not to set GIT_DIR if self.storagedir[:6]=="git://"
 [[br]]Like this (tested, it works): [[br]]
 {{{
 diff -rN old-tailor/vcpx/repository/git/__init__.py new-
 tailor/vcpx/repository/git/__init__.py
 58c58,59
 <             self.env['GIT_DIR'] = self.storagedir
 ---
 >             if (self.storagedir [:6] != "git://") and (self.storagedir
 [:7] != "http://";):
 >                     self.env['GIT_DIR'] = self.storagedir
 }}}

-- 
Ticket URL: <http://progetti.arstecnica.it/tailor/ticket/180>
Tailor <http://progetti.arstecnica.it/tailor>
An inter-VCs changeset exchanger
_______________________________________________
Tailor mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/tailor

Reply via email to