The way git-up tries to get the path to the repository is not working when the GIT_WORK_TREE and GIT_DIR are different.
get_git_dir() tries to get the repository with
return execute(['git', 'rev-parse', '--show-toplevel'])
As far as I understand --git-dir should be used.
http://stackoverflow.com/a/21085415