From bc53d9f12524ccad02dbb17d18e9494d6d1541d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 15 Nov 2022 00:08:13 +0100 Subject: [zsh] Port cci to new stg version --- .zsh/functions/cci | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.zsh/functions/cci b/.zsh/functions/cci index 1e540bf..daab5d1 100644 --- a/.zsh/functions/cci +++ b/.zsh/functions/cci @@ -33,7 +33,6 @@ fi local message=$1 local tok=__cci__ -local stg_v && stg_v=$(python -c 'from stgit.builtin_version import version; print(version)') pushd -q ~ { @@ -74,10 +73,8 @@ cstg commit $tok # from 0.16 onwards stg repushes the patches ... pop them again # this is needed to make the `config push` work -if is-at-least 0.16 $stg_v; then - log "Popping patches, stg thought it had to re-apply" - cstg pop --all --keep -fi +log "Popping patches, stg thought it had to re-apply" +cstg pop --all --keep if [[ -n $(cstg series --applied) ]]; then echo -- cgit v1.2.3