-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git: handle exit code 2 for git remote url retrieval
- Loading branch information
Showing
3 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1322,11 +1322,29 @@ The following actions will be performed: | |
-> installed tolock.dev | ||
Done. | ||
### opam lock tolock --keep-local | ||
[ERROR] Command "/usr/bin/git remote get-url origin" failed: | ||
"/usr/bin/git remote get-url origin" exited with code 2 "error: No such remote 'origin'" | ||
# Return code 99 # | ||
[ERROR] Can't retrieve remote informations for a-doc-dep.dev | ||
[NOTE] Dependency a-doc-dep.dev is pinned to local target git+file://${BASEDIR}/pindep#doc, keeping it. | ||
[ERROR] Can't retrieve remote informations for a-simple-dep.dev | ||
[NOTE] Dependency a-simple-dep.dev is pinned to local target git+file://${BASEDIR}/pindep#simple, keeping it. | ||
[ERROR] Can't retrieve remote informations for a-test-dep.dev | ||
[NOTE] Dependency a-test-dep.dev is pinned to local target git+file://${BASEDIR}/pindep#test, keeping it. | ||
Generated lock files for: | ||
- tolock.dev: ${BASEDIR}/tolock.opam.locked | ||
### opam-cat tolock.opam.locked | ||
# tolock.opam.locked not found | ||
authors: "the testing team" | ||
bug-reports: "https://nobug" | ||
build: ["test" "-f" "content"] | ||
depends: ["a-doc-dep" {= "dev" & with-doc} "a-simple-dep" {= "dev"} "a-test-dep" {= "dev" & with-test} "foo" {= "2"}] | ||
description: "Two words." | ||
dev-repo: "hg+https://[email protected]" | ||
homepage: "egapemoh" | ||
license: "MIT" | ||
maintainer: "[email protected]" | ||
name: "tolock" | ||
opam-version: "2.0" | ||
pin-depends: [["a-doc-dep.dev" "git+file://${BASEDIR}/pindep#doc"] ["a-simple-dep.dev" "git+file://${BASEDIR}/pindep#simple"] ["a-test-dep.dev" "git+file://${BASEDIR}/pindep#test"]] | ||
synopsis: "A word" | ||
version: "dev" | ||
### : Keep local pins as pin-depends | ||
### <pin:local-one/local-one.opam> | ||
opam-version: "2.0" | ||
|