Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vMap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository 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
Marty Fabien
vMap
Commits
7facefc7
Commit
7facefc7
authored
6 years ago
by
Armand Bahi
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into next_version
parents
2fb6e11b
7fbff5c8
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
pull_subtrees.sh
+1
-3
1 addition, 3 deletions
pull_subtrees.sh
push_subtrees.sh
+13
-0
13 additions, 0 deletions
push_subtrees.sh
utils/githooks/post-merge
+8
-7
8 additions, 7 deletions
utils/githooks/post-merge
utils/githooks/pre-push
+6
-5
6 additions, 5 deletions
utils/githooks/pre-push
with
28 additions
and
15 deletions
pull_subtrees.sh
+
1
−
3
View file @
7facefc7
#!/bin/bash
#
#
# Script d'initialisation d'un dépot vMap versionné sous git
# Initislise l'ensemble des dépendances sous forme de subtrees
# Crée des symlinks pour re-créer l'arborescence de l'application
# Récupère les modifications des modules sur l'application
#
#
...
...
This diff is collapsed.
Click to expand it.
push_subtrees.sh
0 → 100644
+
13
−
0
View file @
7facefc7
#!/bin/bash
#
#
# Envoie les modifications de l'application sur les modules
#
#
if
[
`
whoami
`
==
"root"
]
;
then
echo
"Please, do not run this script as sudo"
else
cd
utils/
./push_subtrees.sh
fi
This diff is collapsed.
Click to expand it.
utils/githooks/post-merge
+
8
−
7
View file @
7facefc7
...
...
@@ -9,10 +9,11 @@
#
echo
"****** Post-merge Hook ******"
echo
"****** Pull subtrees ******"
echo
"
$(
pwd
)
"
if
[
-d
"
$(
pwd
)
/utils"
]
;
then
cd
utils
./pull_subtrees.sh
fi
echo
"****** Pull ******"
# echo "****** Pull subtrees ******"
# echo "$(pwd)"
#
# if [ -d "$(pwd)/utils" ]; then
# cd utils
# ./pull_subtrees.sh
# fi
This diff is collapsed.
Click to expand it.
utils/githooks/pre-push
+
6
−
5
View file @
7facefc7
...
...
@@ -13,9 +13,10 @@ url="$2"
if
[
$remote
!=
$url
]
;
then
echo
"****** Pre-push Hook ******"
echo
"****** Push subtrees ******"
if
[
-d
"
$(
pwd
)
/utils"
]
;
then
cd
utils
./push_subtrees.sh
fi
echo
"****** Push ******"
# echo "****** Push subtrees ******"
# if [ -d "$(pwd)/utils" ]; then
# cd utils
# ./push_subtrees.sh
# fi
fi
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