Hi all
I hope you can help.
First, my setup - latest versions of everything, all downloaded this week:
Windows 7
mysysgit
Drupal Acquia
I've installed the Drupal module Git backend, and related modules eg Version Control API on my windows Drupal setup.
I've installed Git on my windows machine, and also on a remote linux machine.
I have set up repositories locally, and I am able to push and pull files from local to remote and back again - using the command line.
However, when trying to set up the repos in Drupal, following these instructions:
https://www.drupal.org/node/1971538
specifically:
Go to Content > VCS repositories > Add Git repository
Repository name: "Test repo", or whatever.
Repository root: "/path/to/repository/bare.git".
I get this error: not a valid Git bare repository
I have created multiple bare repos, both locally and remotely, yet every single attempt results in the same error message.
What am I missing? Have the instructions left something out?
Thanks
Karen
Comments
I was able to set this up
I was able to set this up using by creating a local repository directly under c:\:
mkdir my_repo.git
cd my_repo.git
git init --bare
and then setting the Repository Root (under VCS Repositories > Add Git Repository):
c:\my_repo.git
This works.
So, I guess my issue comes down to the fact that I'm trying to connect to a remote repository. Can anyone help with the syntax for the path?
My remote repository is accessible via the git command line as:
myname@myserver:/home/projects/new_project.git
When I try to place this path in the Repository Root field, I get the 'not a bare repository' error.
Is it even possible to connect to a remote git repo?
BTW - could these error messages be any more unhelpful? They mean nothing!