id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
180	Git source, remote repository - Status 128 on everything	MichaelRaskin	lele	"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
}}}

"	defect	new	major	VersionOne	tailor	0.9		git, source	
