Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Project description file" error in git?

Tags:

git

I've a small project that I want to share with a few others on a machine that we all have access to. I created a bare copy of the local repo with

git clone --bare --no-hardlinks path/to/.git/ repoToShare.git

I then moved repoToShare.git to the server.

I can check it out with the following:

git clone ssh://user@address/opt/gitroot/repoToShare.git/ test

I can then see everything in the local repo and make commits against that. When I try to push changes back to the remote server I get the following error.

*** Project description file hasn't been set
error: hooks/update exited with error code 1
error: hook declined to update refs/heads/master

Any ideas?

like image 950
Paul Wicks Avatar asked Oct 14 '08 07:10

Paul Wicks


People also ask

What is description file in Git?

Git generates a file named description which contains the name of the repository as set by the user. It is located at . git/description. It has a default value as an unnamed repository and the developers should place the actual project name and description in this file.

What is project Description file?

Description: When a project is created in the workspace, a project description file is automatically generated that describes the project. The purpose of this file is to make the project self-describing, so that a project that is zipped up or released to a server can be correctly recreated in another workspace.


1 Answers

Git installs a bunch of pre-configured hooks in the hooks directory, out of the box they do not execute. If you happen to allow execute on them (Eg. chmod +x) then git will try to run them. The particular error pops up cause the default update is failing to run. To fix, delete the default update hook.

Does this link help? From the text:

A colleague of mine experienced a similar issue here where push was not working. You could not push to a local or remote public repository. He was getting a project description file hasn't been set error thrown by .git/hooks/update. This error was not happening for the same project on a linux or Windows box, and seemed to be happening only on Windows Vista. From my research hooks/update is not by default executed, but in windows vista the file permissions meant that it was. Deletion of hooks/update resolved these issues.

like image 58
MDCore Avatar answered Sep 29 '22 07:09

MDCore