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 235258 - Files are being locked while uploading to FTP causing GIT commands issues
Summary: Files are being locked while uploading to FTP causing GIT commands issues
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: FTP Support (show other bugs)
Version: 7.4
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-29 15:58 UTC by turneliusz
Modified: 2013-09-12 08:15 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description turneliusz 2013-08-29 15:58:09 UTC
I'm seeing it all the time when switching to different branches using SourceTree:

git -c diff.mnemonicprefix=false -c core.quotepath=false merge --no-ff master
error: unable to unlink old 'some/file.ini' (Permission denied)

The error casues a mess in the checkout which forces to revert, delete files and to try the command again.

Is there a possibility to not to lock file for write when uploading? Just to read and upload it? Files are really small, could they be buffered into memory and uploaded from that place? Just looking for some possibilities to avoid that problems :)

Thanks :)
Comment 1 Tomas Mysik 2013-08-30 06:59:25 UTC
The lock is there to avoid changes in the editor. But I will try to look at it (but cannot promise anything, sorry).

Thanks.
Comment 2 turneliusz 2013-08-30 07:01:02 UTC
Thanks! :) The thing is annoying. I haven't checked how it is when switching branches from GIT built-in NetBeans.
Comment 3 turneliusz 2013-09-11 16:03:44 UTC
Any updates? I will shoot myself in the head in a moment :)
Comment 4 turneliusz 2013-09-11 16:09:28 UTC
The same problem exist with built-in GIT:

java.io.IOException: Could not delete file D:\www\zankyou\portal\application\languages\nl\lang.nl.tmx

After that same mess in the checkout remains.
Comment 5 Tomas Mysik 2013-09-12 05:59:54 UTC
Sorry, no time for it right now...
Comment 6 turneliusz 2013-09-12 08:15:13 UTC
No problem, if I can help somehow tell me.