1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-21 09:16:10 +02:00
git/contrib/fast-import
Gary Gibbons bf1d68ff4c git-p4: use absolute directory for PWD env var
P4 only looks at the environment variable $PWD to figure out
where it is, so chdir() has code to set that every time.  But
when the clone --destination is not an absolute path, PWD will
not be absolute and P4 won't be able to find any files expected
to be in the current directory.  Fix this by expanding PWD to
an absolute path.

One place this crops up is when using a P4CONFIG environment
variable to specify P4 parameters, such as P4USER or P4PORT.
Setting P4CONFIG=.p4config works for p4 invocations from the
current directory.  But if the value of PWD is not absolute, it
fails.

[ update description --pw ]

Signed-off-by: Gary Gibbons <ggibbons@perforce.com>
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-12-11 21:13:52 -08:00
..
git-import.perl contrib/fast-import: add perl version of simple example 2007-09-18 03:14:18 -07:00
git-import.sh contrib/fast-import: add simple shell example 2007-09-18 03:14:16 -07:00
git-p4 git-p4: use absolute directory for PWD env var 2011-12-11 21:13:52 -08:00
git-p4.bat Make the command call silent 2007-05-15 16:07:41 +02:00
git-p4.txt git-p4: introduce skipSubmitEdit 2011-12-05 14:43:22 -08:00
import-directories.perl perl: use "use warnings" instead of -w 2010-09-27 12:37:56 -07:00
import-tars.perl import-tars: Add support for tarballs compressed with lzma, xz 2009-10-21 17:15:43 -07:00
import-zips.py Correct references to /usr/bin/python which does not exist on FreeBSD 2010-03-24 14:33:54 -07:00