ap-push: Never push an empty revision
PATCH 1/1 ap-push: Never push an empty revision
ap-push should not be used to delete the target branch.
This safety catch will prevent accidentaly deletion of branches if there is an undetected failure of whatever is generating the revision to push.
Signed-off-by Ian Jackson <[email protected]>
--- ap-push | 4 ++++ 1 file changed, 4 insertions(+)
ap-push +4 -0
@@ -25,6 +25,10 @@ revision=$2 . ./cri-common select_xenbranch +if [ "x$revision" = x ]; then + echo >&2 "NOT pushing empty revision!"; exit 1 +fi + : ${TAG_LINUX2639:=tested/2.6.39.x} . ./ap-common
Signature · 1 line
1.7.10.4
Quoted 3 lines · Ian Jackson
ap-push should not be used to delete the target branch.
This safety catch will prevent accidentaly deletion of branches if
"accidentally".
Quoted 4 lines
there is an undetected failure of whatever is generating the revision to push.
Signed-off-by Ian Jackson <[email protected]>
Acked-by Ian Campbell <[email protected]>