Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made git commands work despite values of GIT_DIR and GIT_WORK_TREE #523

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 28, 2014

  1. Made git commands work despite values of GIT_DIR and GIT_WORK_TREE

    The previous method for interacting with a bundle via git involved
    cd'ing into the bundle directory then running the relevant git commands.
    The problem with this approach is that if the environmental variables
    `GIT_DIR` and `GIT_WORK_TREE` are set at this point then git will
    preference their values over those implied by the current directory.
    (This can cause trouble for vcsh users, for example.)
    
    This patch uses the git arguments `-C`, `--git-dir`, and `--work-tree`
    to specify the location of the bundle explicitly. This overcomes the
    original problem since git gives these values precedence over `GIT_DIR`
    and `GIT_WORK_TREE`.
    jrmcornish committed Sep 28, 2014
    Configuration menu
    Copy the full SHA
    b5bc56c View commit details
    Browse the repository at this point in the history