This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 250828 - Git operations can leave stale lock files on Mac
Summary: Git operations can leave stale lock files on Mac
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 8.0.2
Hardware: PC Mac OS X
: P4 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-02 17:02 UTC by hifi
Modified: 2015-03-02 19:52 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hifi 2015-03-02 17:02:50 UTC
When doing normal commit/push/fetch operations on a Mac with a Git repository on Samba share, index lock file can be left behind randomly even when operations succeed and Netbeans is not forcefully killed at any point. Manually removing the lock file always helps and the repository is not in any weird state.

I'm 100% sure the human subject in this case was the only user of the local repo on that share and there were no other Git utilities used against it than Netbeans.

I have no idea how to reproduce this but it happened 3 times last week with different repos with the same system. Worth noting is that the same Samba share is used with Windows 8.0.x Netbeans and no such thing has happened even once.
Comment 1 Ondrej Vrabec 2015-03-02 19:42:41 UTC
> Worth noting is that the same Samba share is used with Windows 8.0.x Netbeans and no such thing has happened even once.
So it happens only on Mac? The same setup works on Windows?

Why are you using Samba share for hosting git clones? Isn't it better, faster and easier to clone to local machine and keep it really local?
Comment 2 hifi 2015-03-02 19:52:16 UTC
It's a convenience thing. The Samba server also runs Apache and PHP for the projects to run without needing a local server or needing to "release" files. It works just fine for Windows NetBeans and Linux cli.