Skip to content

Use of GIT_REPO env-var for setting Repo path in 2.0.9 #535

@ethereon

Description

@ethereon

This change in 2.0.9 is a bit problematic:

  • Even if a path is explicitly provided to the constructor, the GIT_DIR environment variable is used instead
  • For things like git hooks, GIT_DIR is set to .git by default. This will result in self.git_dir being set to .git (os.path.abspath instead of os.path.normpath would fix this). Consequently, subsequent commands fails (eg: repo.git.status())

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy