Git says the project description file has not been modified, even if it is actually modified

I am on Mac OS X 10.5.5 and when I try to do git push (I installed git via the git installer available in google code) it shows me the following error

Counting objects: 86, done.
Compressing objects: 100% (43/43), done.
Writing objects: 100% (84/84), 4.68 MiB | 48 KiB/s, done.
Total 84 (delta 37), reused 84 (delta 37)
*** Project description file hasn't been set
error: hooks/update exited with error code 1
error: hook declined to update refs/heads/master
To <my_git_server>:project_name.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to '<my_git_server>'

The secret is that the project description file is actually installed, any idea why it might behave strangely.

- MI page

+3
source share
1 answer

He considers the project description on the server; <my_git_server>:project_name.gitcontains a file with a name descriptionthat contains something other than the "Repository" Untitled "?

, , ; . project_name.git/hooks/update:

# check for no description
projectdesc=$(sed -e '1q' "$GIT_DIR/description")
case "$projectdesc" in
"Unnamed repository"* | "")
        echo "*** Project description file hasn't been set" >&2
        exit 1
        ;;
esac
+5

Source: https://habr.com/ru/post/1705645/


All Articles