mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-24 07:22:54 +00:00
return 128 if branch already exists in the mkbranch scripts
This commit is contained in:
parent
08bdc1b048
commit
7e519706f9
2 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ for p in $PACKAGES ; do
|
||||||
$(GIT_DIR=$REPODIR/$p.git git rev-parse -q --verify \
|
$(GIT_DIR=$REPODIR/$p.git git rev-parse -q --verify \
|
||||||
$BRANCH >/dev/null) && \
|
$BRANCH >/dev/null) && \
|
||||||
(echo "IGNORING: Package module $p already has a branch $BRANCH" >&2; \
|
(echo "IGNORING: Package module $p already has a branch $BRANCH" >&2; \
|
||||||
[ "$IGNORE" = "yes" ] && continue || exit -1)
|
[ "$IGNORE" = "yes" ] && continue || exit 128)
|
||||||
NEWP="$NEWP $p"
|
NEWP="$NEWP $p"
|
||||||
done
|
done
|
||||||
PACKAGES="$(echo $NEWP)"
|
PACKAGES="$(echo $NEWP)"
|
||||||
|
|
|
@ -104,7 +104,7 @@ for p in $PACKAGES ; do
|
||||||
$(GIT_DIR=$REPODIR/$p.git git rev-parse -q --verify \
|
$(GIT_DIR=$REPODIR/$p.git git rev-parse -q --verify \
|
||||||
$BRANCH >/dev/null) && \
|
$BRANCH >/dev/null) && \
|
||||||
(echo "IGNORING: Package module $p already has a branch $BRANCH" >&2; \
|
(echo "IGNORING: Package module $p already has a branch $BRANCH" >&2; \
|
||||||
[ "$IGNORE" = "yes" ] && continue || exit -1)
|
[ "$IGNORE" = "yes" ] && continue || exit 128)
|
||||||
NEWP="$NEWP $p"
|
NEWP="$NEWP $p"
|
||||||
done
|
done
|
||||||
PACKAGES="$(echo $NEWP)"
|
PACKAGES="$(echo $NEWP)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue