2016-08-08 17 views
2

Ich änderte einige Dateien, machte ein neues Festschreiben, und tippte dann git pull Dann machte git automatisch eine neue Zusammenführung, die leer war! Also dann habe ich eine git rebase versucht, um es loszuwerden. Und das leere Commit ist jetzt weg.Gerrit doppelte Anfrage abgelehnt

Aber jetzt, wenn ich git review tun, bekomme ich

You are about to submit multiple commits. This is expected if you are 
submitting a commit that is dependent on one or more in-review 
commits. Otherwise you should consider squashing your changes into one 
commit before submitting. 

The outstanding commits are: 

←[33me4b3f96←[m←[33m (←[m←[1;36mHEAD←[m←[33m -> ←[m←[1;32mmaster←[m←[33m)←[m unit tester fixes 
←[33mbc61468←[m Addded test cases to ... 
←[33me21d8c7←[m Added test cases to the 
←[33ma8d2919←[m added another test case 
←[33m938ef4f←[m Modified a few tests 
←[33mbee5ba1←[m FA initial 

Do you really want to submit the above commits? 
Type 'yes' to confirm, other to cancel: yes 
remote: Resolving deltas: 100% (38/38) 
remote: Processing changes: refs: 1, done 
remote: (W) bc61468: commit subject >65 characters; use shorter first paragraph 
remote: (W) bc61468: commit message lines >70 characters; manually wrap lines 
To ssh://[email protected]:29418/IM 
! [remote rejected] HEAD -> refs/publish/master (duplicate request) 
error: failed to push some refs to 'ssh://[email protected]:29418/IM' 

Wie finde ich heraus, warum sagt es doppelte Anforderung? Ich verstehe nicht, warum das passiert. Ich habe verschiedene Dinge vergeblich versucht.

Antwort

3

Macht nichts. Also mein Commit "fügte einen weiteren Testfall hinzu" hatte die gleiche Änderungs-ID wie commit "Modified ein paar Tests". Ich hatte die Änderungs-ID gleich gemacht, so dass sie als Patch unter dem vorherigen Commit auf Gerrit erscheinen würde. Aber es scheint, als ob Gerrit möchte, dass Sie die Änderungen stattdessen in einen Commit zerquetschen.

Also habe ich sie zerquetscht und jetzt bekomme ich keine doppelten Fehler.