Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343646 - [server] Git Push for tags returns wrong result
Summary: [server] Git Push for tags returns wrong result
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Git (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: Szymon Brandys CLA
QA Contact:
URL:
Whiteboard: gsoc2011
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-22 05:28 EDT by Szymon Brandys CLA
Modified: 2011-09-01 09:51 EDT (History)
2 users (show)

See Also:
Szymon.Brandys: review+
tomasz.zarna: review+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Szymon Brandys CLA 2011-04-22 05:28:33 EDT
Steps:
1) Use HEAD and remote branch that are in sync
2) Add a tag to a commit in HEAD
3) Use Git Push to push the new tag to remote

The result of Git Push operation is UP_TO_DATE what is wrong.
Comment 1 Piotr Janik CLA 2011-06-13 14:54:13 EDT
Fix: https://github.com/pjanik/orion.server/tree/bug343646

Status was checked incorrectly. Any UP_TO_DATE remote ref update status caused a warning. However there can be combination of UP_TO_DATE statues (i.e. related to branch, which is actually up to date) and OK statuses (i.e. related to tags, which were successfully updated). Now OK will be returned in such case. I've also modified a test a little bit.

I wrote all this code and have the rights to contribute it to Eclipse under the
eclipse.org web site terms of use.
Comment 2 Tomasz Zarna CLA 2011-06-14 07:24:20 EDT
Looks fine to me.
Comment 3 Szymon Brandys CLA 2011-06-14 07:27:35 EDT
Fixed with f65ec49bb222d42451fef478a1be5c10f656e527.