{"thread":{"id":"8203","subject":"GIT_DIR used to work with git-1.4.4.4","startedAt":"2007-05-18T14:24:44Z","lastAt":"2007-05-18T14:24:44Z","messageCount":1,"participants":["Christian MICHON"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"42486","messageId":"46d6db660705180724n43dfeebakf5725a04e5b10673@mail.gmail.com","threadId":"8203","inReplyTo":null,"subject":"GIT_DIR used to work with git-1.4.4.4","fromName":"Christian MICHON","fromEmail":"christian.michon@gmail.com","sentAt":"2007-05-18T14:24:44Z","receivedAt":"2007-05-18T14:24:44Z","isPatch":false,"sender":{"key":"christian.michon@gmail.com","avatar":"https://gravatar.com/avatar/8a7c327b21187fbcab5c27640a49450eec72e0355dc292501197f27a5a744ec4?d=mp&s=160"},"body":"sorry if I created too much (user) noise around this issue, but\nthis is mostly why as a user I refrained using git-1.5.x\n\nI sometimes have a scm work flow where I'd like to have my\nGIT_DIR sitting on another file system, so therefore not in\nthe current working directory.\n\nI used to be able to do this in git-1.4.4.4:\n(it's a rather useless example, I know)\n\nmkdir /home/xian/vault\nexport GIT_DIR=/home/xian/vault\nmkdir /tmp/xianwork\ncd /tmp/xianwork\ntouch a b\ngit init-db\ngit add .\n\nThis was truly working, and now using git-1.5.1.4, it's not.\n\nInstead I get: \"fatal: add must be run in a work tree\"\n\nfrom the source code, I understand what to change if I\nwant to get the old behavior.\n\nMy questions are:\n- is this new behavior truly needed ?\n- is there another way to do this using newer work flow ?\n( I know already about the symbolic .git link trick )\n\nThanks in advance for any useful tips.\n\n-- \nChristian\n"}]}