File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /__pycache__ /
Original file line number Diff line number Diff line change 1- #!/usr/bin/env python
2- '''
3- A hook to check commit massage.
4-
5- This is currently used to decide if large file should be commited.
6-
7- '''
8-
9- import githooks
10-
11- if __name__ == '__main__' :
12- exit (githooks .commit_msg_hook ())
1+ #! /usr/bin/env bash
2+ me=` basename " $0 " `
3+
4+ case " $OSTYPE " in
5+ msys)
6+ echo " Running ${me} in MinGW"
7+ PYTHON_EXECUTABLE=python
8+ ;;
9+ * )
10+ echo " Running ${me} on linux / mac / unix"
11+ PYTHON_EXECUTABLE=python3
12+ esac
13+
14+ ${PYTHON_EXECUTABLE} " ${BASH_SOURCE[0]% .* } .py" " $@ "
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+ '''
3+ A hook to check commit massage.
4+
5+ This is currently used to decide if large file should be commited.
6+
7+ '''
8+
9+ import githooks
10+
11+ if __name__ == '__main__' :
12+ exit (githooks .commit_msg_hook ())
Original file line number Diff line number Diff line change 1- #!/usr/bin/env python
2- '''
3- This is a git hook migrated from hg.
4-
5- Reference:
6- https://confluence.ccdc.cam.ac.uk/pages/viewpage.action?spaceKey=GIT&title=Hooks
7-
8- '''
9-
10- import githooks
11-
12- if __name__ == '__main__' :
13- exit (githooks .commit_hook ())
1+ #! /usr/bin/env bash
2+ me=` basename " $0 " `
3+
4+ case " $OSTYPE " in
5+ msys)
6+ echo " Running ${me} in MinGW"
7+ PYTHON_EXECUTABLE=python
8+ ;;
9+ * )
10+ echo " Running ${me} on linux / mac / unix"
11+ PYTHON_EXECUTABLE=python3
12+ esac
13+
14+ ${PYTHON_EXECUTABLE} " ${BASH_SOURCE[0]% .* } .py" " $@ "
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+ '''
3+ This is a git hook migrated from hg.
4+
5+ Reference:
6+ https://confluence.ccdc.cam.ac.uk/pages/viewpage.action?spaceKey=GIT&title=Hooks
7+
8+ '''
9+
10+ import githooks
11+
12+ if __name__ == '__main__' :
13+ exit (githooks .commit_hook ())
Original file line number Diff line number Diff line change 1- #!/usr/bin/env python
2- '''
3- This is a git hook migrated from hg.
4-
5- Reference:
6- https://confluence.ccdc.cam.ac.uk/pages/viewpage.action?spaceKey=GIT&title=Hooks
7-
8- '''
9-
10- import githooks
11-
12- if __name__ == '__main__' :
13- exit (githooks .commit_hook (merge = True ))
1+ #! /usr/bin/env bash
2+ me=` basename " $0 " `
3+
4+ case " $OSTYPE " in
5+ msys)
6+ echo " Running ${me} in MinGW"
7+ PYTHON_EXECUTABLE=python
8+ ;;
9+ * )
10+ echo " Running ${me} linux / mac / unix"
11+ PYTHON_EXECUTABLE=python3
12+ esac
13+
14+ ${PYTHON_EXECUTABLE} " ${BASH_SOURCE[0]% .* } .py" " $@ "
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+ '''
3+ This is a git hook migrated from hg.
4+
5+ Reference:
6+ https://confluence.ccdc.cam.ac.uk/pages/viewpage.action?spaceKey=GIT&title=Hooks
7+
8+ '''
9+
10+ import githooks
11+
12+ if __name__ == '__main__' :
13+ exit (githooks .commit_hook (merge = True ))
You can’t perform that action at this time.
0 commit comments