This repository has been archived by the owner on Aug 29, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2585 from danmcp/master
Merged by openshift-bot
- Loading branch information
Showing
7 changed files
with
31 additions
and
29 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
git_dir=$1 | ||
target_dir=$2 | ||
|
||
# if GIT_DIR is set we need to unset it | ||
[ ! -z "${GIT_DIR+xxx}" ] && unset GIT_DIR | ||
set -xe; | ||
|
||
pushd ${OPENSHIFT_TMP_DIR} > /dev/null | ||
git clone $git_dir git_cache | ||
|
||
pushd git_cache > /dev/null | ||
# initialize submodules and pull down source | ||
git submodule update --init --recursive | ||
|
||
# archive and copy the submodules | ||
git submodule foreach --recursive "git archive --format=tar HEAD | (cd $target_dir/\$name && tar --warning=no-timestamp -xf -)" | ||
|
||
popd > /dev/null | ||
popd > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters