Commit ce290759 authored by Frank Terbeck's avatar Frank Terbeck

vcsup: make “, ++ …” behave like “vcsuptool push …”

parent 7ba981ef
......@@ -376,6 +376,10 @@ function "${cmd}" () {
ret=$?
unset VCSUPGUARD
;;
(++)
shift
VCSUP_push "$@"
;;
(*)
context="${context}:default"
if (( ${#argv} != 1 )); then
......
......@@ -160,6 +160,16 @@ expect_stack "Many entries on the stack" \
comma does-not-exist 2> /dev/null
expect_return_value "Comma fails with non-existing directory" 1 $?
# "comma ++" is a short-hand for "vcsuptool push"
cd $base
tool clear
comma src/drivers/spi
comma ++
expect_stack "comma ++ just pushed \$PWD" $PWD
oldpwd=$PWD
comma
expect_stack "Default behaviour does not filter dups" $oldpwd $oldpwd
# Teardown
printf '\nRemoving test base directory: %s\n' $base
rm -Rf $base || exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment