-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/develop' into size_ICM
- Loading branch information
Showing
9 changed files
with
138 additions
and
78 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
|
@@ -48,10 +48,30 @@ fi | |
thisbranch=`git rev-parse --abbrev-ref HEAD` | ||
log "thisbranch = $thisbranch" | ||
|
||
# If the branch already exists in the regression source directory, remove it and | ||
# fetch it again. | ||
if test "$thisbranch" = "pr${featurebranch}"; then | ||
run "${GIT} reset --hard origin/develop" | ||
run "${GIT} pull origin $prdir/${featurebranch}/head" | ||
else | ||
run "${GIT} fetch origin ${prdir}/${featurebranch}/head:pr${featurebranch}" | ||
run "${GIT} checkout pr${featurebranch}" | ||
# run "${GIT} reset --hard origin/develop" | ||
run "${GIT} checkout develop" | ||
run "${GIT} branch -D pr${featurebranch}" | ||
# run "${GIT} pull origin $prdir/${featurebranch}/head" | ||
fi | ||
run "${GIT} fetch origin ${prdir}/${featurebranch}/head:pr${featurebranch}" | ||
run "${GIT} checkout pr${featurebranch}" | ||
|
||
# Another option is to edit .git/config: | ||
# [core] | ||
# repositoryformatversion = 0 | ||
# filemode = true | ||
# bare = false | ||
# logallrefupdates = true | ||
# [remote "origin"] | ||
# url = [email protected]:losalamos/Draco.git | ||
# fetch = +refs/heads/*:refs/remotes/origin/* | ||
# fetch = +refs/pull/*/head:refs/remotes/origin/pr/* | ||
# [branch "develop"] | ||
# remote = origin | ||
# merge = refs/heads/develop | ||
# so that 'git fetch origin' fetches all PRs and 'git checkout pr/999' will be a | ||
# tracking branch. The problem with this approach is that all PRs are downloaded | ||
# and this can take time. |
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