Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Error cloning when using GitHub Enterprise #651

Closed
aaronkjones opened this issue Aug 28, 2019 · 3 comments
Closed

Error cloning when using GitHub Enterprise #651

aaronkjones opened this issue Aug 28, 2019 · 3 comments

Comments

@aaronkjones
Copy link

Output shows that it is using github.jparrowsec.cnpany.com, but then uses github.com in clone command DEBUG: spawnSyncStream: git clone [email protected]:user/DemoRepo.git DemoRepo

Output

gh re -c -r DemoRepo --verbose
DEBUG: ENOENT: no such file or directory, open '/Users/user/Documents/GitHub/.gh.json'
DEBUG: spawnSync: git config --get remote.origin.url
DEBUG: Can't get remote URL.
DEBUG: spawnSync: git symbolic-ref --short HEAD
DEBUG: Can't get current branch.
https://github.jparrowsec.cnpany.com/user/DemoRepo
Cloning user/DemoRepo
DEBUG: spawnSyncStream: git clone [email protected]:user/DemoRepo.git DemoRepo
Cloning into 'DemoRepo'...
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
/usr/local/lib/node_modules/gh/lib/exec.js:38
        throw err;
        ^

Error: Child process terminated with error code 128
    at Object.spawnSyncStream (/usr/local/lib/node_modules/gh/lib/exec.js:35:15)
    at Object.clone (/usr/local/lib/node_modules/gh/lib/git.js:25:29)
    at Repo.clone_ (/usr/local/lib/node_modules/gh/lib/cmds/repo.js:298:9)
    at /usr/local/lib/node_modules/gh/lib/cmds/repo.js:123:30
    at /usr/local/lib/node_modules/gh/lib/base.js:96:28
    at /usr/local/lib/node_modules/gh/node_modules/github/api/v3.0.0/repos.js:319:17
    at callCallback (/usr/local/lib/node_modules/gh/node_modules/github/index.js:743:17)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/gh/node_modules/github/index.js:796:25)
    at IncomingMessage.emit (events.js:208:15)
    at endReadableNT (_stream_readable.js:1161:12) {
  code: 128,
  message: 'Child process terminated with error code 128'
}

Config

    "api": {
        "host": "github.jparrowsec.cnpany.com",
        "protocol": "https",
        "version": "3.0.0",
        "pathPrefix": "/api/v3"
    },
@protoEvangelion
Copy link
Member

Hey @aaronkjones that definitely looks like an issue! I will make a note to look into this.

@protoEvangelion protoEvangelion changed the title "ERROR: Repository not found" when using GitHub Enterprise Error cloning when using GitHub Enterprise Sep 30, 2019
protoEvangelion pushed a commit to protoEvangelion/gh that referenced this issue Sep 30, 2019
protoEvangelion pushed a commit to protoEvangelion/gh that referenced this issue Oct 2, 2019
protoEvangelion pushed a commit that referenced this issue Oct 2, 2019
## [2.0.8](v2.0.7...v2.0.8) (2019-10-02)

### Bug Fixes

* **repo:** enable enterprise & custom hosts for git clone ([cd7b8bd](cd7b8bd)), closes [#651](#651)
@protoEvangelion
Copy link
Member

🎉 This issue has been resolved in version 2.0.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

@aaronkjones
Copy link
Author

Thank you @protoEvangelion

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants