Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Loic
tools
Commits
65706dfe
Commit
65706dfe
authored
Mar 08, 2018
by
Oliver Pinter
Browse files
HBSD: add atomic to git push
Signed-off-by:
Oliver Pinter
<
oliver.pinter@hardenedbsd.org
>
parent
7eb652b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
hardenedBSD_update_and_push.csh
View file @
65706dfe
...
...
@@ -36,7 +36,7 @@ git stash
(git fetch freebsd) |& ${TEE_CMD} ${LOGS}/freebsd-fetch-${DATE}.log
# pushing the freshly fetched FreeBSD commit notes to hardenedbsd repo
# these contains the svn revision ids
(git push origin refs/notes/commits) |& ${TEE_CMD} ${LOGS}/freebsd-fetch-${DATE}.log
(git push
--atomic
origin refs/notes/commits) |& ${TEE_CMD} ${LOGS}/freebsd-fetch-${DATE}.log
foreach line ( ${BRANCHES} )
set err=0
...
...
@@ -106,7 +106,7 @@ foreach line ( ${BRANCHES} )
endif
# update remote
(git push origin ${branch}) |& ${TEE_CMD} ${LOGS}/${_branch}-${DATE}.log
(git push
--atomic
origin ${branch}) |& ${TEE_CMD} ${LOGS}/${_branch}-${DATE}.log
if ( $? != 0 ) then
set _mail_subject_prefix="[PUSH]"
set err=1
...
...
Write
Preview
Supports
Markdown
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