1

I am trying to clone a repo in Drools WorkBench and getting the following error

"Can't clone repository. java.lang.RuntimeException:Invalid remote: origin"

The repository which I am cloning, resides in my local machine. Following are the inputs I am providing to WorkBench clone Wizard,

"Repository Name = repoCloned" "Organizational Unit = inTech"

"GIT URL = file:///D:/Servers/Drools-6-Deployment/repo/repoA.git"

"User Name = " (Currently I am giving my github account cred. What to give in user name?) "Password = " (Currently I am giving my github account cred. What to give as password?)

Why am I getting remote origin error when I am cloning from a local GIT repository ?

kindly let me know what to give as User Name and Password when I am cloning from an existing git repo in my local filesystem.

learner
  • 906
  • 2
  • 10
  • 39
  • Try not giving a username/password, to be sure they won't be passed to the url. If that doesn't work, keep those fields empty and try an url like `/D/Servers/Drools-6-Deployment/repo/repoA.git`, to see if that works better. – VonC Jun 08 '14 at 11:47
  • @VonC. Still getting the same error. Do I need to define/configure remiote for my git repository, repoA.git – learner Jun 10 '14 at 06:01
  • "Why am I getting remote origin error when I am cloning from a local GIT repository ?" any clone (local or not) adds a remote named "origin". If, in the new clone, a `git remote -v` doesn't list origin, then indeed, try and add one manually: `git remote add origin /D/Servers/Drools-6-Deployment/repo/repoA.git` – VonC Jun 10 '14 at 06:32
  • Still getting the same error may be because of the bare repository. – learner Jun 15 '14 at 06:16
  • Note: the remote is supposed to be a bare repo: http://stackoverflow.com/a/24115534/6309 – VonC Jun 15 '14 at 06:31

0 Answers0