Skip to content

Invalid Git Command Format (on CentOS 6) #15

@ferricoxide

Description

@ferricoxide

Recently stood up RedMine on a CentOS 6.6 AWS instance. Installed your plugin. When I attempt to add a GitHub-hosted remote, I get an error message indicating:

Clone URL Unable to run: git --git-dir /RedMine/repositories/git/Test remote add git@github.com:<USERID>/<PROJECT>.git

Dropped to the command-line and manually ran what the plugin is attempting to run and got a usage error from Git. In order to get Git to do the proper operation, I had to change the invocation to:

Clone URL Unable to run: git --git-dir=/RedMine/repositories/git/Test remote add origin git@github.com:<USERID>/<PROJECT>.git

Host OS: CentOS 6.6 (updated yesterday - 2015-05-28)
Git Version: 1.7.1 (from the git-1.7.1-3.el6_4.1.x86_64 found in the CentOS 6 standard repositories)

Should be noted that even though the command errors out, a prior operation does manage to create a skeleton directory at /RedMine/repositories/git/Test:

$ ls /RedMine/repositories/git/AMI6
branches  config  description  HEAD  hooks  info  objects  refs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions