[Bps-public-commit] git-sync branch, master, updated. bb65366219e150d0e0b91aef418f13552b6e241b
Alex Vandiver
alexmv at bestpractical.com
Mon May 3 14:14:17 EDT 2010
The branch, master has been updated
via bb65366219e150d0e0b91aef418f13552b6e241b (commit)
from c20c10fc9a447dad95cb4b4f994acace0acd0d56 (commit)
Summary of changes:
git-sync | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit bb65366219e150d0e0b91aef418f13552b6e241b
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Mon May 3 14:14:29 2010 -0400
Warn and die instead of silently doing nothing when no sync targets are configured
diff --git a/git-sync b/git-sync
index a417999..3b4afc8 100755
--- a/git-sync
+++ b/git-sync
@@ -233,6 +233,8 @@ if (@ARGV) {
}
} else {
@categories = sort {exists $sync{$a}{local} <=> exists $sync{$b}{local} or $a cmp $b} keys %sync;
+ die qq{No sync targets configured! Edit your ~/.gitconfig to add one.\n}
+ unless @categories;
}
my %seen;
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list