Skip to content

Execute function returns stderr for command line file read. #1420

Description

@joydeba

The command gh auth login --with-token<ghKeysconfig in the terminal works fine.

Here, ghKeysconfig is the file.

But when I use my python script with GitPython as follows

gLocal = git.Git("ansible")
authenticate_gh = gLocal.execute(["gh","auth","login","--with-token","<ghKeysconfig"])

It shows this error -

Cmd('gh') failed due to: exit code(1)
  cmdline: gh auth login --with-token <ghKeysconfig
  stderr: 'accepts 0 arg(s), received 1' 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions