Thread (1 message) 1 message, 1 author, 2016-06-15

AW: AW: git and concurrent access to local repository

From: Boettger, Heiko <hidden>
Date: 2016-06-15 23:08:54

Hi Torsten,

yes, indeed I accidently pressed the wrong reply button.

The solution I'm using is the following:

pushd workingcopy > /dev/null
	(
		flock -x 200
		git reset --hard
		git clean -xfd
		git pull --rebase
	) 200>.git/gitrebase.lock
popd > /dev/null

Best Regards
Heiko

-----Ursprüngliche Nachricht-----
Von: Torsten Bögershausen [mailto:tboegi@web.de] 
Gesendet: Dienstag, 22. März 2016 14:54
An: Boettger, Heiko
Betreff: Re: AW: git and concurrent access to local repository

Thanks for the reply,
you may want to send it to all, including the git mailing list.
These kindof problems arise from time to time, and it may be nice to share your knowledge as well, including work-arounds


On 2016-03-22 10.54, Boettger, Heiko wrote:
Thanks Torsten,

for sharing your knowledge. That exactly what I thought. As a solution, I'm guarding the calls with "flock -x", which perfectly works since I know exactly where the repos are used. 

Regards
Heiko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help