[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 23:58:01 CST 2010


branch "master" has been updated
       via  85ae21beb8b40755f0e1a02324e5275accbc8b24 (commit)
      from  4f47bef7d48c7891b53d3cae2e466afee9d68603 (commit)

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


- Log -----------------------------------------------------------------
commit 85ae21beb8b40755f0e1a02324e5275accbc8b24
Author: David M. Lee <dlee at unknown.(none)>
Date:   Wed Nov 10 05:53:39 2010 -0600

    Another fix for older versions of git.
    
    In older versions of git, git remote does not have the set-url subcommand.
    Instead, use git config to update origin's URL.

diff --git a/gitall-asterisk-scf.sh b/gitall-asterisk-scf.sh
index c5a2b8b..5373866 100755
--- a/gitall-asterisk-scf.sh
+++ b/gitall-asterisk-scf.sh
@@ -118,7 +118,7 @@ EOF
 
         if [ -d ${repoDir}/.git ]; then
             # update the origin to what is specified in repoUri
-            ( cd ${repoDir} && git remote set-url origin ${repoUri} )
+            ( cd ${repoDir} && git config remote.origin.url ${repoUri} )
             if ( cd ${repoDir} && git rev-parse --verify @{upstream} > /dev/null 2>&1 ); then
                 echo ">> Pulling from repo ${repoUri}"
                 ( cd ${repoDir} && git pull )

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


-- 
asterisk-scf/integration/gitall.git



More information about the asterisk-scf-commits mailing list