Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christopher League
nixvm
Commits
a8beebca
Commit
a8beebca
authored
Dec 20, 2018
by
Christopher League
Browse files
pre-push v1
parent
4b4da1fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
pre-push
0 → 100755
View file @
a8beebca
#!/bin/sh
# $1 -- Name of the remote to which the push is being done
remote
=
"
$1
"
# $2 -- URL to which the push is being done
url
=
"
$2
"
case
$remote
in
origin
)
;;
*
)
echo
pre-push: nothing to
do for
$remote
exit
0
esac
# <local ref> <local sha1> <remote ref> <remote sha1>
while
read
local_ref local_sha remote_ref remote_sha
do
echo
pre-push: from
$local_ref
$local_sha
echo
pre-push: to
$remote_ref
$remote_sha
done
exit
1
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