[asterisk-scf-commits] asterisk-scf/integration/gitall.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Nov 9 16:39:58 CST 2010


branch "master" has been updated
       via  4f47bef7d48c7891b53d3cae2e466afee9d68603 (commit)
      from  89b3a5c6448a17713f89791286422a5aaab3ce41 (commit)

Summary of changes:
 gitall-asterisk-scf.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 4f47bef7d48c7891b53d3cae2e466afee9d68603
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Tue Nov 9 16:36:42 2010 -0600

    Use a simpler and more reliable method of getting the URL to the 'origin' remote.
    
    Don't use '--all' for 'git fetch'; it's not needed, and older versions of git don't support it.

diff --git a/gitall-asterisk-scf.sh b/gitall-asterisk-scf.sh
index 9d54a5d..c5a2b8b 100755
--- a/gitall-asterisk-scf.sh
+++ b/gitall-asterisk-scf.sh
@@ -25,7 +25,7 @@ If no command is given, pull is run by default.
 EOF
 }
 
-gitdepot=`git remote show -n origin | grep "Fetch URL" | sed "s@^.*URL: @@" | sed "s at asterisk-scf/integration/gitall@@"`
+gitdepot=`git config --get remote.origin.url | sed "s at asterisk-scf/integration/gitall@@"`
 
 # tree should probably be set by menu prompts or command line args
 # one day
@@ -88,7 +88,7 @@ function pull()
 
     # check to see if gitall needs a pull
     echo ">> Fetching gitall"
-    git fetch --all
+    git fetch
     echo
 
     # if there is an upstream branch, and it has changes we don't

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/gitall.git



More information about the asterisk-scf-commits mailing list