Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHE-1350: Set refspec in PushTest to prevent git error #1615

Merged
merged 1 commit into from
Jun 30, 2016
Merged

Conversation

vinokurig
Copy link
Contributor

Git can be configured to throw error on push without refspec

@@ -151,6 +151,8 @@ public void testPushWhenLocalRepositoryIsUpToDate(GitConnectionFactory connectio

//when
PushResponse pushResponse = localConnection.push(newDto(PushRequest.class)
.withRefSpec(
Collections.singletonList("refs/heads/master:refs/heads/master"))
Copy link
Contributor

@voievodin voievodin Jun 30, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use static import for singletonList and change it to one line please

@voievodin
Copy link
Contributor

The code is ok for me

Git can be configured to throw error on push without refspec
@vinokurig vinokurig merged commit dfebc20 into master Jun 30, 2016
@codenvy-ci
Copy link

Build # 1074 - FAILED

Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/1074/ to view the results.

@vinokurig vinokurig deleted the CHE-1350 branch June 30, 2016 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants