summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-08-29 20:34:21 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-08-29 20:34:21 +0200
commit5198586d56bb790d37e7aa1202e99c1219753088 (patch)
tree7c548bbad42f8e29426539ae7613ca3d86a39c48 /bin
parentafddd3504453272034c1702333bf88706c2e4b73 (diff)
Moved git-specific logic from pkg_status to vcs_status
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ct7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/ct b/bin/ct
index 721259e..a5ff803 100755
--- a/bin/ct
+++ b/bin/ct
@@ -331,8 +331,11 @@ function vcs_push (
)
function vcs_status (
+ typeset gitstatus
vcs_setup $1
- git status
+ gitstatus=$(git status)
+ [[ $gitstatus == *'nothing to commit (working directory clean)' ]] && gitstatus=''
+ echo $gitstatus
)
## List stuff
@@ -754,7 +757,7 @@ function pkg_status {
typeset vcs_status
check_installed $1
vcs_status=$(PAGER='' vcs_status $1)
- if [[ -n $vcs_status && $vcs_status != *'nothing to commit (working directory clean)' ]] {
+ if [[ -n $vcs_status ]] {
if ((SILENT)) {
echo $1
} else {