Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
fc146d50
Commit
fc146d50
authored
9 years ago
by
Fred Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
we don't use these hooks
parent
02b914c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
28 deletions
+0
-28
util/sync_hooks.sh
+0
-28
No files found.
util/sync_hooks.sh
deleted
100755 → 0
View file @
02b914c2
#!/bin/bash
# A small utility to symlink the files from git-hooks/ with filenames ending
# like .in into the directory .git/hooks/
#
# It's intended this be run once near the start of a project by hand, and then
# subsequently a hook that it installs keeps it running at project checkouts.
# Save current directory so we can come back; change to repo root
STARTED_FROM
=
`
pwd
`
cd
$(
git rev-parse
--show-toplevel
)
# Sync git-hooks directory entries into .git/hooks/
for
file
in
git-hooks/
*
.in
;
do
filepart
=
`
basename
$file
.in
`
if
[
-e
.git/hooks/
$filepart
-a
!
-L
.git/hooks/
$filepart
]
;
then
echo
".git/hooks/
$filepart
not link-managed; bailing..."
echo
"please examine your .git/hooks/ directory and repair inconsistencies manually"
cd
$STARTED_FROM
exit
1
else
ln
-v
-s
-f
`
pwd
`
/
$file
.git/hooks/
$filepart
fi
done
# Ok, everything went well; restore previous context
cd
$STARTED_FROM
exit
0
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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