Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ADIOS2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Podhorszki, Norbert
ADIOS2
Commits
1e743f3d
Commit
1e743f3d
authored
7 years ago
by
Atkins, Charles Vernon
Browse files
Options
Downloads
Patches
Plain Diff
Added upstream remote in setup script
parent
8b318d00
No related branches found
No related tags found
1 merge request
!30
Added upstream remote in setup script
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scripts/developer/git/setup-aliases
+2
-3
2 additions, 3 deletions
scripts/developer/git/setup-aliases
scripts/developer/git/setup-remotes
+27
-0
27 additions, 0 deletions
scripts/developer/git/setup-remotes
scripts/developer/setup.sh
+3
-0
3 additions, 0 deletions
scripts/developer/setup.sh
with
32 additions
and
3 deletions
scripts/developer/git/setup-aliases
+
2
−
3
View file @
1e743f3d
...
...
@@ -3,14 +3,13 @@
echo
"Setting up git aliases..."
if
!
which clang-format 2>1 1>/dev/null
then
echo
"
ADIOS development requires clang-format to be available in your path.
"
e
xit
1
echo
"
Warning: ADIOS uses clang-format to enforce style guidelines but no
"
e
cho
" clang-format binary was found in tyour path"
fi
if
!
git config alias.clang-format
"!scripts/developer/git/git-clang-format"
then
echo
"Error adding clang-format alias"
exit
2
fi
exit
0
This diff is collapsed.
Click to expand it.
scripts/developer/git/setup-remotes
0 → 100755
+
27
−
0
View file @
1e743f3d
#!/usr/bin/env bash
echo
"Checking github username..."
GHUSER
=
$(
git remote get-url origin |
sed
's|.*[:/]\([^/]*\)/adios2.git|\1|'
)
if
[
-z
"
${
GHUSER
}
"
]
then
echo
" Warning: Unable to determine github username. Are you sure you"
echo
" cloned your fork?"
exit
1
fi
echo
"Using github user
${
GHUSER
}
"
echo
"Adding upstream remote..."
if
git remote show upstream
>
/dev/null 2>&1
then
echo
" Warning: upstream remote already exists; skipping"
else
git remote add upstream https://github.com/ornladios/adios2.git
fi
git fetch
--all
-p
echo
"Reconfiguring local master branch to use upstream"
git config branch.master.remote upstream
git config branch.master.mergeOptions
"--ff-only"
git config merge.log 100
exit
0
This diff is collapsed.
Click to expand it.
scripts/developer/setup.sh
+
3
−
0
View file @
1e743f3d
...
...
@@ -10,6 +10,9 @@ function test_cmd {
cd
"
${
BASH_SOURCE
%/*
}
/../.."
test_cmd scripts/developer/git/setup-remotes
\
"Failed to setup upstream remotes "
2
test_cmd scripts/developer/git/setup-aliases
\
"Failed to setup git aliases"
2
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment