We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56c42ba commit 75ced51Copy full SHA for 75ced51
pkg/lib/commands/do-plumbing-clone.sh
@@ -41,10 +41,14 @@ do-plumbing-clone() {
41
# If we are going to a specific revision, do it now
42
if [ -n "$ref" ]; then
43
local git_output=
44
- if git_output="$(git -C "$BPM_PACKAGES_PATH/$id" reset --hard "$ref")"; then
+ if git_output="$(git -C "$BPM_PACKAGES_PATH/$id" reset --hard "$ref" 2>&1)"; then
45
printf "%s\n" " -> Reseting to revision '$ref'"
46
else
47
- printf "%s\n" "$git_output"
+ log.error "Could not reset to particular revision '$ref'"
48
+ printf " --> %s\n" "Is '$ref' actually in '$id'?"
49
+ printf " --> %s\n" "Git output:"
50
+ printf " --> %s\n" "${git_output%.}"
51
+ exit 1
52
fi
53
54
if [ -n "${BPM_MODE_TEST+x}" ]; then
0 commit comments