From 1c44c624ba602316c4735b78ef050ccef2badae3 Mon Sep 17 00:00:00 2001 From: lovelywcm Date: Thu, 1 Apr 2010 07:46:50 +0000 Subject: [PATCH] YXZvaWQgdW5uZWNlc3NhcnkgZW1wdHkgdGVtcC5wYXRjaCBmaWxlCg== --- sendGFWList.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sendGFWList.sh b/sendGFWList.sh index cbea854..f7c980e 100755 --- a/sendGFWList.sh +++ b/sendGFWList.sh @@ -22,7 +22,7 @@ # edit list.txt as usual; # $./sendGFWList.sh "say something about this edit" # Note: -# 1: You can use "git" to show, diff, log...what's you want; +# 1: You can use "$git log" "$git show" "$git diff"...; # 2: Do NOT commit "list.txt" to svn server (it won't by default); # 3: Do NOT use any unicode character in the list, there is a known bug; # 4: Do NOT "svn update", run this script to update / commit at any time. @@ -68,7 +68,7 @@ if [ "$convertedLog" != "" ]; then svn update && # save local modification - git diff > temp.patch && + [ -n "$(git diff)" ] && git diff > temp.patch && base64 -d gfwlist.txt > list.txt && echo -e $convertedLog | git commit -a -F - ;