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
95436c73
Commit
95436c73
authored
7 years ago
by
Atkins, Charles Vernon
Browse files
Options
Downloads
Patches
Plain Diff
Fix setup scripts to work with older git versions
parent
33a63abf
No related branches found
No related tags found
1 merge request
!38
Fix setup scripts to work with older git versions
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/developer/git/setup-aliases
+2
-2
2 additions, 2 deletions
scripts/developer/git/setup-aliases
scripts/developer/git/setup-remotes
+1
-1
1 addition, 1 deletion
scripts/developer/git/setup-remotes
with
3 additions
and
3 deletions
scripts/developer/git/setup-aliases
+
2
−
2
View file @
95436c73
#!/usr/bin/env bash
echo
"Setting up git aliases..."
if
!
which clang-format
2>1
1>/dev/null
if
!
which clang-format 1>/dev/null
2>&1
then
echo
"Warning: ADIOS uses clang-format to enforce style guidelines but no"
echo
" clang-format binary was found in tyour path"
...
...
@@ -9,7 +9,7 @@ fi
if
!
git config alias.clang-format
"!scripts/developer/git/git-clang-format"
then
echo
"Error adding clang-format alias"
echo
"
Waring:
Error adding clang-format alias"
fi
exit
0
This diff is collapsed.
Click to expand it.
scripts/developer/git/setup-remotes
+
1
−
1
View file @
95436c73
#!/usr/bin/env bash
echo
"Checking GitHub username..."
GHUSER
=
$(
git remote
get-url origin
|
sed
's|.*[:/]\([^/]*\)/adios2.git|\1|'
)
GHUSER
=
$(
git remote
show origin |
grep
"Fetch URL"
|
sed
's|.*[:/]\([^/]*\)/adios2.git|\1|'
)
if
[
-z
"
${
GHUSER
}
"
]
then
echo
" Warning: Unable to determine GitHub username. Are you sure you"
...
...
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