diff options
author | Joey Hess <joey@kitenet.net> | 2013-05-06 09:49:23 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-05-06 09:49:23 -0400 |
commit | d1dbe26b3398d478ea1a8ba56cc571506c08c0aa (patch) | |
tree | 29353a07c3afc61912b2293d299dd6f40855d10e | |
parent | 77642416a16c56d590f92ecdef0d2f564425f492 (diff) |
Fix warning when PUSH_REMOTE is not set. Closes: #706917
-rwxr-xr-x | commit.d/99push | 11 | ||||
-rw-r--r-- | debian/changelog | 6 |
2 files changed, 12 insertions, 5 deletions
diff --git a/commit.d/99push b/commit.d/99push index 9c1844c..9a5d81e 100755 --- a/commit.d/99push +++ b/commit.d/99push @@ -1,7 +1,8 @@ #!/bin/sh - -if [ "$VCS" = git ] && [ -d .git ] && [ -n "$PUSH_REMOTE" ]; then - git push "$PUSH_REMOTE" master || true -else - echo "PUSH_REMOTE not yet supported for $VCS" >&2 +if [ -n "$PUSH_REMOTE" ]; then + if [ "$VCS" = git ] && [ -d .git ]; then + git push "$PUSH_REMOTE" master || true + else + echo "PUSH_REMOTE not yet supported for $VCS" >&2 + fi fi diff --git a/debian/changelog b/debian/changelog index b475caf..a5c181c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +etckeeper (1.1) UNRELEASED; urgency=low + + * Fix warning when PUSH_REMOTE is not set. Closes: #706917 + + -- Joey Hess <joeyh@debian.org> Mon, 06 May 2013 09:49:02 -0400 + etckeeper (1.0) unstable; urgency=low [ Joey Hess ] |