Skip to content

credential fill subcommand fails outside of git repository #2198

@Adolar0042

Description

@Adolar0042

Current behavior 😯

gix credential fill fails if the current directory isn't part of a git repository with the message Error: Could not find a git repository in '.' or in any of its parents
From a bit of testing it seems to be originating from this line:

repository(Mode::StrictWithGitInstallConfig)?,

Expected behavior 🤔

gix credential fill should run, no matter if in a git repository or not

Git behavior

git credential fill runs, no matter if in a git repository or not

Steps to reproduce 🕹

  1. Go into a directory that isn't part of any git repository
  2. Run both gix and git with the subcommand
$ git credential fill << EOF
protocol=https
host=github.com
EOF

Metadata

Metadata

Assignees

No one assigned

    Labels

    acknowledgedan issue is accepted as shortcoming to be fixedhelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions