Home My Page Projects Site Admin
Summary Activity Tracker Lists Tasks Docs News SCM Files Mediawiki

[#14229] git push fails (project description not set)

Date:
2012-05-07 08:21
Priority:
3
State:
Closed
Submitted by:
Ross Hemsley (rlhemsley)
Assigned to:
Nobody (None)
Category:
gênant
Group:
None
Resolution:
Duplicate
 
Summary:
git push fails (project description not set)

Detailed description
I went to push my changes yesterday and received the following error:

ukulele:walkrandomdelau rhemsley$ git push
Counting objects: 82, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (69/69), done.
Writing objects: 100% (69/69), 76.41 KiB, done.
Total 69 (delta 51), reused 0 (delta 0)
remote: *** Project description file hasn't been set
remote: error: hook declined to update refs/heads/develop
remote: *** Project description file hasn't been set
remote: error: hook declined to update refs/heads/master
To git+ssh://rlhemsley@scm.gforge.inria.fr//gitroot//walkrandomdelau/walkrandomdelau.git
! [remote rejected] develop -> develop (hook declined)
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'git+ssh://rlhemsley@scm.gforge.inria.fr//gitroot//walkrandomdelau/walkrandomdelau.git'


I think this is a problem with the remote repository, a quick google suggests that perhaps the permissions have been changed on the remote repository?

Followup

Message
Date: 2012-05-11 12:49
Sender: Benjamin Guillon

Hello, Vous devriez vérifier tous les git repositories des projets car j'avais la même chose et je ne suis pas sûr que tout le monde vienne lire les tickets d'incident ouverts ici. Encore merci pour la solution.
Date: 2012-05-10 12:17
Sender: Aurélien Le Gentil

C'est OK; j'ai suivi la procedure suivante (issue du ticket 14222):

ssh [login]@scm.gforge.inria.fr
cd /gitroot/[project]/[project].git/hook
for i in `ls` ; do mv $i $i.sample ; done

I am now able to push.
Date: 2012-05-09 12:06
Sender: Aurélien Le Gentil

I have modified the description file of my project(h2olabgui) but I still got the error.
Date: 2012-05-09 11:48
Sender: Sébastien Campion

yes, hooks files got the exec x flags on your project.
I debug it, now.

Date: 2012-05-09 09:45
Sender: Ross Hemsley

Still broken for me (is it just me?)

ukulele:temp rhemsley$ git clone git+ssh://rlhemsley@scm.gforge.inria.fr//gitroot/walkrandomdelau/walkrandomdelau.git
ukulele:walkrandomdelau rhemsley$ touch empty
ukulele:walkrandomdelau rhemsley$ git add empty
ukulele:walkrandomdelau rhemsley$ git commit -m "empty change"
ukulele:walkrandomdelau rhemsley$ git push
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 268 bytes, done.
Total 3 (delta 1), reused 1 (delta 0)
remote: *** Project description file hasn't been set
remote: error: hook declined to update refs/heads/master
To git+ssh://rlhemsley@scm.gforge.inria.fr//gitroot/walkrandomdelau/walkrandomdelau.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'git+ssh://rlhemsley@scm.gforge.inria.fr//gitroot/walkrandomdelau/walkrandomdelau.git'
Date: 2012-05-09 09:30
Sender: Sébastien Campion

the problem seems to be fixed ( duplicated with [#14222])
Date: 2012-05-09 07:50
Sender: Sébastien Campion

Yes, it's due to another fix, we got a strange behaviour on permissions ... i check that with our system administrator
Date: 2012-05-08 17:34
Sender: Erwan Demairy

Hello,
It looks some (all?) git projects are concerned by this problem.
A workaround that worked on the projects I used:

ssh scm.gforge.inria.fr # connect to the gforge console administration
echo "yourproject git repository" > /gitroot/yourproject/yourproject.git/description # set the description of the project to something else than default description.

The real cause seems that the hooks scripts are set executable automatically by a script. I do not know wether it is a bug or a feature :), i.e. if we want to enforce that projects provide a description.

Erwan
Date: 2012-05-07 09:37
Sender: Aurélien Le Gentil

Bonjour,

J'ai eu la meme erreur vendredi, voici le message d'erreur:

git.exe push --progress "origin" master:master

Counting objects: 7, done.
Compressing objects: 100% (4/4)
Writing objects: 100% (4/4)
Writing objects: 100% (4/4), 497 bytes, done.
remote: error: hook declined to update refs/heads/master
To ssh://alegenti@scm.gforge.inria.fr//gitroot//h2olabgui/h2olabgui.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://alegenti@scm.gforge.inria.fr//gitroot//h2olabgui/h2olabgui.git'

git did not exit cleanly (exit code 1)


Le dernier push réussi date du 26/04; je ne pense pas avoir de modifications de configurations depuis. Est-ce qu'un changement coté serveur (maj de git, ...) pourrait expliquer ce problème ? Une autre idée ?
Merci pour l'aide
Aurélien

Attached Files:

Changes:

Field Old Value Date By
status_idOpen2012-05-09 09:30scampion
close_dateNone2012-05-09 09:30scampion
ResolutionNone2012-05-09 09:30scampion
CategoryNone2012-05-08 17:34edemairy