Bug 380117 - org.eclipse.jgit.pgm.Init does not support specifying the target directory
Summary: org.eclipse.jgit.pgm.Init does not support specifying the target directory
Status: NEW
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 365439
  Show dependency tree
 
Reported: 2012-05-21 05:37 EDT by Tomasz Zarna CLA
Modified: 2012-05-21 08:29 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Zarna CLA 2012-05-21 05:37:32 EDT
From bug 365439, comment 6:

JGit Init command does not support specifying the directory for the new repository (but InitCommand in the api does).

For example:
jgit init my_new_repo
returns:
fatal: No argument is allowed: my_new_repo

You have to create the new directory manually, and the executing "jgit init" from there.