Hi,
Test 21 from contrib/subtree/t/t7900-subtree.sh fails when an
environment variable 'prefix' is set. For instance here is what happens
when prefix=/usr:
expecting success:
echo "You must provide the --prefix option." > expected &&
test_must_fail git subtree split > actual 2>&1 &&
test_debug "printf 'expected: '" &&
test_debug "cat expected" &&
test_debug "printf 'actual: '" &&
test_debug "cat actual" &&
test_cmp expected actual &&
rm -f expected actual
--- expected 2014-03-17 10:39:34.907594853 +0000+++ actual 2014-03-17 10:39:34.979595322 +0000
@@ -1 +1,9 @@-You must provide the --prefix option.
fatal: /usr: '/usr' is outside repository
fatal: /usr: '/usr' is outside repository
fatal: /usr: '/usr' is outside repository
fatal: /usr: '/usr' is outside repository
fatal: /usr: '/usr' is outside repository
fatal: /usr: '/usr' is outside repository
fatal: /usr: '/usr' is outside repository
fatal: /usr: '/usr' is outside repository
+No new revisions were found
not ok 21 - Check that prefix argument is required for split
Thanks,
_g.
From: Jeff King <hidden> Date: 2016-06-15 23:00:21
On Mon, Mar 17, 2014 at 01:58:00PM +0100, Gilles Filippini wrote:
Test 21 from contrib/subtree/t/t7900-subtree.sh fails when an
environment variable 'prefix' is set. For instance here is what happens
when prefix=/usr:
I think it just needs the patch below.
-- >8 --
We parse the "--prefix" command-line option into the
"$prefix" shell variable. However, if we do not see such an
option, the variable is left with whatever value it had in
the environment. We should initialize it to a known value,
like we do for other variables.
Signed-off-by: Jeff King <redacted>
---
I checked, and this looks like the only variable in this situation.
contrib/subtree/git-subtree.sh | 1 +
1 file changed, 1 insertion(+)
From: Eric Sunshine <hidden> Date: 2016-06-15 23:00:21
On Mon, Mar 17, 2014 at 3:59 PM, Jeff King [off-list ref] wrote:
On Mon, Mar 17, 2014 at 01:58:00PM +0100, Gilles Filippini wrote:
quoted
Test 21 from contrib/subtree/t/t7900-subtree.sh fails when an
environment variable 'prefix' is set. For instance here is what happens
when prefix=/usr:
-- >8 --
We parse the "--prefix" command-line option into the
"$prefix" shell variable. However, if we do not see such an
option, the variable is left with whatever value it had in
the environment. We should initialize it to a known value,
like we do for other variables.
Signed-off-by: Jeff King <redacted>
---
I checked, and this looks like the only variable in this situation.
contrib/subtree/git-subtree.sh | 1 +
1 file changed, 1 insertion(+)
From: Jeff King <hidden> Date: 2016-06-15 23:00:21
On Mon, Mar 17, 2014 at 04:08:50PM -0400, Eric Sunshine wrote:
On Mon, Mar 17, 2014 at 3:59 PM, Jeff King [off-list ref] wrote:
quoted
On Mon, Mar 17, 2014 at 01:58:00PM +0100, Gilles Filippini wrote:
quoted
Test 21 from contrib/subtree/t/t7900-subtree.sh fails when an
environment variable 'prefix' is set. For instance here is what happens
when prefix=/usr:
Ah, sorry Gilles, I completely missed that. Junio, if you pick this up,
please feel free to use text from my commit message as you see fit, but
mark Gilles as the author.
Thanks, Eric, for pointing it out.
-Peff