Skip to content

Commit 3a02b73

Browse files
author
Iryna Shustava
committed
Add git pre-commit hook to sync package specs
[#117964281]
1 parent b036419 commit 3a02b73

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

git_hooks/pre-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh -e
2+
3+
./scripts/sync-package-specs

scripts/setup-git-hooks

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
pushd $(dirname $0) > /dev/null
4+
SCRIPT_DIR=$(pwd)
5+
popd > /dev/null
6+
7+
for f in ${SCRIPT_DIR}/../git_hooks/*
8+
do
9+
ln -fs ../../git_hooks/$( basename $f ) ${SCRIPT_DIR}/../.git/hooks/$( basename $f )
10+
done

0 commit comments

Comments
 (0)