From: Nutan S. <ns...@ci...> - 2008-08-04 15:19:15
|
Hi, In, "Adding files to the repository // The "/path/to/working/tree" is the directory containing the .git directory File workingTreePath = new File("/path/to/working/tree"); WorkingTree wt = WorkingTree.getInstance(workingTreePath); GitFile file = new GitFile("path/relative/to/workingtree/root.txt", wt); GitAddResponse ar = wt.add(); " Shouldn't the last line be GitAddResponse ar = file.add(); ? A bug (http://sourceforge.net/tracker/index.php?func=detail&aid=2037398&group_id=233450&atid=1089899) is also raised about add not working for workingTree. I think the reason is improper calling, and, its not a bug. Thanks, Nutan |