Nope. Still fails. (See below.)
One cause would be if the pristine-tar script is itself setting
GIT_DIR to an incorrect value. Which I think it might be.
$ grep 'ENV{GIT_DIR}=' /usr/bin/pristine-tar
$ENV{GIT_DIR}=getcwd."/.git";
$ENV{GIT_DIR}=abs_path($ENV{GIT_DIR});
My impression is that the "right" way to do that is to just use the
output of "git rev-parse --git-dir"
--Barak.
----------------------------------------------------------------
~/src/git/debian-src/scheme9 $ ls -ld .git
-rw-rw-r-- 1 barak barak 32 Jul 12 17:16 .git
~/src/git/debian-src/scheme9 $ pristine-tar commit
../scheme9_2012.07.10.orig.tar.gz
error: scheme9_2012.07.10.orig.tar.gz.delta: does not exist and --remove not
passed
fatal: Unable to process path scheme9_2012.07.10.orig.tar.gz.delta
pristine-tar: command failed: git update-index --add
scheme9_2012.07.10.orig.tar.gz.delta scheme9_2012.07.10.orig.tar.gz.id
~/src/git/debian-src/scheme9 $ git rev-parse --git-dir
/home/barak/src/git/debian-src/.git/modules/scheme9
~/src/git/debian-src/scheme9 $ export GIT_DIR=$(git rev-parse --git-dir)
~/src/git/debian-src/scheme9 $ pristine-tar commit
../scheme9_2012.07.10.orig.tar.gz
error: scheme9_2012.07.10.orig.tar.gz.delta: does not exist and --remove not
passed
fatal: Unable to process path scheme9_2012.07.10.orig.tar.gz.delta
pristine-tar: command failed: git update-index --add
scheme9_2012.07.10.orig.tar.gz.delta scheme9_2012.07.10.orig.tar.gz.id
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]