Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ActEV
diva_evaluation_cli
Commits
e5f87fda
Commit
e5f87fda
authored
Jan 27, 2020
by
Baptiste CHOCOT
Browse files
bugfix for --sha
parent
552fe82c
Changes
2
Hide whitespace changes
Inline
Side-by-side
diva_evaluation_cli/bin/private_src/entry_points/actev_get_system.py
View file @
e5f87fda
...
...
@@ -64,7 +64,11 @@ def entry_point(url, system_type, location=None, user=None, password=None, token
else
:
install_cli
=
"False"
if
not
name
:
name
=
""
name
=
"None"
# SHA
if
not
sha
:
sha
=
"None"
# go into the right directory to execute the script
path
=
os
.
path
.
dirname
(
__file__
)
...
...
diva_evaluation_cli/bin/private_src/implementation/get_system/get/get_git.sh
View file @
e5f87fda
...
...
@@ -36,17 +36,16 @@ fi
git clone
--recursive
$url
if
[
$?
-eq
0
]
;
then
repo_name
=
`
echo
$url
| rev |
cut
-d
'.'
-f2
| rev
`
repo_name
=
`
echo
$repo_name
| rev |
cut
-d
'/'
-f1
| rev
`
# If sha or tag is specified
if
[
$sha
!=
"None"
]
;
then
dest
=
`
echo
$end
|
sed
's,^.*/,,'
|
sed
's,\.git$,,'
`
cd
$dest
git checkout
$sha
cd
$repo_name
git checkout
$sha
||
exit
1
cd
..
fi
# If the system has to be installed
if
[
$cli
==
"True"
]
;
then
repo_name
=
`
echo
$url
| rev |
cut
-d
'.'
-f2
| rev
`
repo_name
=
`
echo
$repo_name
| rev |
cut
-d
'/'
-f1
| rev
`
cd
$repo_name
diva_evaluation_cli/bin/install.sh
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment