Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 224551 - Git: FileNotFoundException when adding/commiting a symlink
Git: FileNotFoundException when adding/commiting a symlink
Product: versioncontrol
Classification: Unclassified
Component: Git
PC Linux
: P4 (vote)
: 7.4
Assigned To: Ondrej Vrabec
Depends on:
  Show dependency treegraph
Reported: 2013-01-07 03:46 UTC by pekarna
Modified: 2013-08-01 02:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description pekarna 2013-01-07 03:46:52 UTC
I've created a symlink in my repo (which leads to non-existent file intentionally).
When trying to commit it, I get this dialog:

Git Command Failed
================== /home/ondra/uw/ (No such file or directory)

Adding a symlink is supported in Git.
I was able to add it using git in shell.
Comment 1 Ondrej Vrabec 2013-01-07 12:51:24 UTC
adding a file to index fails, commit is fine:
INFO [org.netbeans.modules.git]: /home/ondra/NetBeansProjects/git/212986/2/212986/bbb (No such file or directory) /home/ondra/NetBeansProjects/git/212986/2/212986/bbb (No such file or directory)
        at Method)
        at org.eclipse.jgit.treewalk.FileTreeIterator$FileEntry.openInputStream(
        at org.eclipse.jgit.treewalk.WorkingTreeIterator.openEntryStream(
Caused: org.netbeans.libs.git.GitException
        at org.netbeans.libs.git.jgit.commands.GitCommand.execute(
        at org.netbeans.libs.git.GitClient.add(
Comment 2 Ondrej Vrabec 2013-01-07 14:09:24 UTC
No sure how to fix this reliably, JGit does not fully support symlinks and i am afraid without a change in JGit's code i cannot fix it. Maybe using reflection and methods from JDK7?
Comment 3 Ondrej Vrabec 2013-07-30 13:56:19 UTC
hopefully fixing with JDK7 java.nio

Comment 4 Quality Engineering 2013-08-01 02:32:05 UTC
Integrated into 'main-silver', will be available in build *201307312300* on (upload may still be in progress)

User: Ondrej Vrabec <>
Log: #224551 - Git: FileNotFoundException when adding/commiting a symlink

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo