Skip to content

Commit

Permalink
software update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérôme Lebel committed Feb 17, 2015
1 parent ceebc20 commit f1089e2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Libraries/MongoObjCDriver
2 changes: 1 addition & 1 deletion Libraries/MongoObjCDriver.sha1
@@ -1 +1 @@
44bbc3f6c70e305996bb4937909f68637420632f
35097196b49983727b220c3a1b02ff28988b54e7
9 changes: 5 additions & 4 deletions scripts/update_submodule.sh
@@ -1,14 +1,14 @@
#!/usr/bin/env bash

set -x
set -xeu

submodule_owner="$1"
submodule_name="$2"
submodule_branch="$3"
submodule_path="$4"

pwd
origin_url=`git config --get remote.origin.url`
origin_url=`git config --get remote.origin.url` || true
if [ "${origin_url:0:8}" = "https://" ] ; then
protocol="http"
tmp=`dirname "${origin_url}"`
Expand All @@ -25,11 +25,12 @@ elif [ "${origin_url}" != "" ] ; then
github_url="${github_url}:"
else
protocol="file"
github_url=""
fi
sha1=`cat $submodule_path`
sha1=`cat "${submodule_path}.sha1"`

echo $url
echo $github_url
echo $sha1

if [ "${protocol}" = "ssh" ] ; then
git submodule update --init
Expand Down

0 comments on commit f1089e2

Please sign in to comment.