Commit 65706dfe authored by Oliver Pinter's avatar Oliver Pinter
Browse files

HBSD: add atomic to git push



Signed-off-by: default avatarOliver Pinter <oliver.pinter@hardenedbsd.org>
parent 7eb652b1
...@@ -36,7 +36,7 @@ git stash ...@@ -36,7 +36,7 @@ git stash
(git fetch freebsd) |& ${TEE_CMD} ${LOGS}/freebsd-fetch-${DATE}.log (git fetch freebsd) |& ${TEE_CMD} ${LOGS}/freebsd-fetch-${DATE}.log
# pushing the freshly fetched FreeBSD commit notes to hardenedbsd repo # pushing the freshly fetched FreeBSD commit notes to hardenedbsd repo
# these contains the svn revision ids # 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} ) foreach line ( ${BRANCHES} )
set err=0 set err=0
...@@ -106,7 +106,7 @@ foreach line ( ${BRANCHES} ) ...@@ -106,7 +106,7 @@ foreach line ( ${BRANCHES} )
endif endif
# update remote # 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 if ( $? != 0 ) then
set _mail_subject_prefix="[PUSH]" set _mail_subject_prefix="[PUSH]"
set err=1 set err=1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment