commit 90b8280ed36911268f56cb0850440c3530236388
Author: Elan Ruusamäe <[email protected]>
Date:   Wed Jul 27 10:38:42 2016 +0300

    branch.sh: use real git
    
    this way can use personal branches which are not published on github

 branch.sh | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/branch.sh b/branch.sh
index 05e89e5..eea028d 100755
--- a/branch.sh
+++ b/branch.sh
@@ -1,11 +1,12 @@
 #!/bin/sh
 set -e
 svn=svn://svn.lighttpd.net/lighttpd
-url=https://github.com/lighttpd/lighttpd1.4
+url=https://git.lighttpd.net/lighttpd/lighttpd1.4.git
 package=lighttpd
 tag=lighttpd-1.4.40
 branch=master
-out=lighttpd-branch.diff
+out=$package-branch.diff
+repo=$package.git
 
 # old version of this code used to create tarball.
 # leave it around
@@ -30,10 +31,14 @@ filter() {
        | cat
 }
 
-echo >&2 "Running diff: $tag...$branch"
-LC_ALL=C curl -Ss $url/compare/$tag...$branch.patch > $out.tmp
+if [ ! -d $repo ]; then
+       git clone --bare $url -b $branch $repo
+fi
 
-filter < $out.tmp > $out.tmp2 && mv -f $out.{tmp2,tmp}
+cd $repo
+       git fetch
+       git diff $tag..$branch | filter > ../$out.tmp
+cd ..
 
 if cmp -s $out{,.tmp}; then
        echo >&2 "No new diffs..."
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lighttpd.git/commitdiff/4d51a6d5547b2e110baffb8247783828522c9e5e

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to