Skip to contentSkip to conversation

Git does not use GIT_* envirnment vars?

DISCUSSION Dmitry Torokhov 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

I am totally confused... This is with today's cogito pull. It does not seem to take GIT_ environment variables, although according to debugger it puts correct data when writing object... Anybody else seeing this?

[dtor@anvil kernel]$ mkdir git-test
[dtor@anvil kernel]$ cd git-test/
[dtor@anvil git-test]$ git-init-db
defaulting to local storage area
[dtor@anvil git-test]$ git-write-tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
[dtor@anvil git-test]$ git-commit-tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904 Committing initial tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
test
413398e6c1b53a0993cb195209c4d0e6276bb076
[dtor@anvil git-test]$ git-cat-file commit 413398e6c1b53a0993cb195209c4d0e6276bb076 tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
author Dmitry Torokhov <[email protected]> 1117173530 -0500 committer Dmitry Torokhov <[email protected]> 1117173530 -0500

test
[dtor@anvil git-test]$ export | grep GIT declare -x GIT_AUTHOR_EMAIL="[email protected]" declare -x GIT_COMMITTER_EMAIL="[email protected]" declare -x GIT_COMMITTER_NAME="Dmitry Torokhov"

Signature · 1 line
Dmitry
#1 lore raw

I am baffled. If you are a bash user, what does "type --all" tells you? The only explanation I can think of is that you might have leftover old git-* installation somewhere on your PATH.

#2 lore raw
Quoted 4 lines · Junio C Hamano

I am baffled. If you are a bash user, what does "type --all" tells you? The only explanation I can think of is that you might have leftover old git-* installation somewhere on your PATH.

*sigh* Exactly. I forgot to uninstall cogito rpm after pulling the latest tree and they got mixed up. Dammit, I just wasted 3 hours because of my own stupidity :(

Thank you for your help.

Signature · 1 line
Dmitry