Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Error from running terminus build:project:create d8 my-project-name - Command git -C path commit -m 'Initial commit' failed with exit code 1 #175

Open
JonathanSimonJones opened this issue Nov 9, 2018 · 2 comments

Comments

@JonathanSimonJones
Copy link

JonathanSimonJones commented Nov 9, 2018

I was following the example code from https://pantheon.io/docs/guides/build-tools/create-project/ and on the step ( terminus build:project:create d8 my-project-name ) I ran into the error ( Error - Command git -C _path_ commit -m 'Initial commit' failed with exit code 1 ).

From the logging that goes on I can see that it passes:
Creating GitHub project
Call GitHub API
Creating project and resolving dependencies (with suggesting for installing components)
Creates repository
Call GitHub API
Runs git init, followed with success message
Runs git remote add
Creates site 'site' in org ' ' with upstream empty
Creates a new Pantheon site 'site'
Deploys empty to Pantheon site (this step is one of my concerns)
Deploys CMS
Creates a new Pantheon site with UUID 'UUID'
Runs git add (followed my a load of warnings about line endings)
Runs git commit

Then it says:
error: pathspec 'commit'' did not match any file(s) known to git
[error] Command git -C _path_ -m 'Initial commit' failed with exit code 1

I checked to see if git had been initialised in the directory specified in the log and it appears it hasn't. When I entered the specified directory there is a .git directory but git commands do not work within it.

I checked to see if my GitHub has a new repo as the log mentioned it passed that, and it does not appear to to be there either.

The pantheon dashboard also does not show any more sandbox sites.

I should mention I'm doing this on a windows PC running the commands on MinGW64. On thing I did notice on the log is the path is 'C:\Users\me\etc/site-name' I'm not sure if this is the cause of the error or not, but though it worth noting it here.

Any guidance would be greatly appreciated.

@JonathanSimonJones JonathanSimonJones changed the title Error - Command git -C path commit -m 'Initial commit' failed with exit code 1 Error from running terminus build:project:create d8 my-project-name - Command git -C path commit -m 'Initial commit' failed with exit code 1 Nov 9, 2018
@greg-1-anderson
Copy link
Member

Are you running on Windows? There are a number of Windows-related bugs in Terminus core; the build tools plugin is untested on Windows. Your problem looks like an escaping bug.

Windows users are advised to run Terminus in a Linux vm.

@JonathanSimonJones
Copy link
Author

Seems to be the case. Thanks for quick response :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants