alloy/git-svn-mirror — Issue #1: Incorrect GIT_DIR location
Author: mloskot
Created: 2011-12-18 20:19:48+00:00
State: open

I'm not a Ruby programmer, but I think the script sets GIT_DIR to work tree instead of location of .git folder in line

```ruby
command = "env GIT_DIR='#{workbench}' #{command}"
```

GIT_DIR or the --git-dir option tell git to use the specified directory for its administrative files.
So this needs to be set to the .git directory for the target repository:

```
GIT_DIR=/path/to/workbench/.git
```

Currently, GIT_DIR is set to /path/to/workbench which in fact is work tree. To summary, locations are handled by Git this way:

```
git --git-dir=/path/to/workbench/.git --work-tree=/path/to/workbench
```