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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marty Fabien
vMap
Commits
d55a4872
Commit
d55a4872
authored
Sep 27, 2018
by
Armand Bahi
Browse files
Options
Downloads
Patches
Plain Diff
Pull and push hooks
parent
c7d34b24
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
utils/copy_hooks.sh
+15
-0
15 additions, 0 deletions
utils/copy_hooks.sh
utils/post-merge
+17
-0
17 additions, 0 deletions
utils/post-merge
utils/pre-push
+17
-0
17 additions, 0 deletions
utils/pre-push
with
49 additions
and
0 deletions
utils/copy_hooks.sh
0 → 100755
+
15
−
0
View file @
d55a4872
#!/bin/bash
#
#
# Script de mise à jour des hooks client
#
#
#
if
[
"post-merge"
]
;
then
if
[
-d
"../.git/hooks"
]
;
then
cp
-f
post-merge ../.git/hooks/post-merge
cp
-f
pre-push ../.git/hooks/pre-push
fi
fi
This diff is collapsed.
Click to expand it.
utils/post-merge
0 → 100755
+
17
−
0
View file @
d55a4872
#!/bin/sh
#
# Hook qui permet de push toutes les dépendances
# quand on fait un push sur l'application
#
#
#
#
#
echo
"****** Pre-push Hook ******"
echo
"
$(
pwd
)
"
if
[
-d
"
$(
pwd
)
/utils"
]
;
then
cd
utils
./push_subtrees.sh
fi
This diff is collapsed.
Click to expand it.
utils/pre-push
0 → 100755
+
17
−
0
View file @
d55a4872
#!/bin/sh
#
# Hook qui permet de mettre à jour toutes les dépendances
# quand on fait un pull sur l'application
#
#
#
#
#
echo
"****** Post-merge Hook ******"
echo
"
$(
pwd
)
"
if
[
-d
"
$(
pwd
)
/utils"
]
;
then
cd
utils
./pull_subtrees.sh
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