Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue while running grunt : Could not read git information #1749

Closed
mannou440 opened this issue Jan 17, 2017 · 1 comment
Closed

issue while running grunt : Could not read git information #1749

mannou440 opened this issue Jan 17, 2017 · 1 comment

Comments

@mannou440
Copy link

mannou440 commented Jan 17, 2017

Hi !
I was working with the first version of dash-if-reference (master branch). I used to download the .zip file directly and to extract it to my apache server. Every thing was good till I moved to the second version. When I run "grunt" it gives me this issue :

Running "githash:dist" (githash) task
Could not read git information: Error: Command failed: git rev-parse --abbrev-ref HEAD
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.

After doing my research, I created a new repository on my server and ran "git init" inside before and after extracting the master branch .zip file. The grunt file gave me always the same error.
It seems that this issue is only with the downloaded versions since every thing works when I clone the repository from the github server. .
I am missing some thing ?

Thanks !

@davemevans
Copy link
Contributor

@mannou440 can you try the patch in #1750?

LloydW93 pushed a commit that referenced this issue Jan 25, 2017
Fix #1749 - do not fail to build if not a git repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants