[jira] Updated: (SCM-444) Git provider does 'git push' during 'mvn release:prepare' which causes unwanted problems

2010-02-26 Thread Kristian Rosenvold (JIRA)

 [ 
http://jira.codehaus.org/browse/SCM-444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kristian Rosenvold updated SCM-444:
---

Attachment: release_branch.jpg

 Git provider does 'git push' during 'mvn release:prepare' which causes 
 unwanted problems
 

 Key: SCM-444
 URL: http://jira.codehaus.org/browse/SCM-444
 Project: Maven SCM
  Issue Type: Bug
  Components: maven-scm-provider-git
Affects Versions: 1.1
Reporter: Petter Måhlén
Assignee: Mark Struberg
Priority: Minor
 Attachments: release_branch.jpg, SCM-444.patch


 When doing 'mvn release:prepare' with a Git provider, a 'git push' command is 
 executed. This is not ideal because the push command can fail or push things 
 from the local repository that are not needed/wanted in the remote 
 repository. Some examples are:
 1. The local repository has two branches: master (tracking origin/master) and 
 dummy (tracking origin/dummy). The release is being made on the master 
 branch, and the dummy and origin/dummy branches have diverged. Running 
 'release:prepare' causes a 'git push', which will succeed for the master 
 branch (assuming that the release preparation has been made correctly) and 
 fail for the dummy branch (the two branches have diverged and need to be 
 merged or rebased). The release preparation aborts and the directory is left 
 in a somewhat inconsistent state where manual cleaning up is needed (removing 
 pom.xml.next files, changing versions to new-SNAPSHOT, etc.)
 2. The local repository has two branches: master (tracking origin/master) and 
 localtest (not in the origin repository). The localtest branch shouldn't be 
 published because it is just used for some temporary testing and doesn't even 
 work. It will be pushed during 'release:prepare'.
 Suggested behaviour: use 'git push origin currentbranch:currentbranch', 
 or even better, query for which remote repository to push to (found in 
 .git/config) and which branch to push from and to. For me, it would be great 
 to have a 'confirm push' before doing it so as to keep things clean, but 
 maybe that is quite complex.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (SCM-444) Git provider does 'git push' during 'mvn release:prepare' which causes unwanted problems

2010-02-25 Thread Hiram Chirino (JIRA)

 [ 
http://jira.codehaus.org/browse/SCM-444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hiram Chirino updated SCM-444:
--

Attachment: SCM-444.patch

Attaching a patch which added a 'pushChanges' configuration setting to the scm 
plugin.
And update the git provider to check it so  you can disable pushing changes.

The setting will probably come in handy for the other distributed SCM 
implementations.

For those of you using git.. the patch can be accessed at: 
http://github.com/chirino/maven-scm/tree/trunk/maven-scm-providers/

 Git provider does 'git push' during 'mvn release:prepare' which causes 
 unwanted problems
 

 Key: SCM-444
 URL: http://jira.codehaus.org/browse/SCM-444
 Project: Maven SCM
  Issue Type: Bug
  Components: maven-scm-provider-git
Affects Versions: 1.1
Reporter: Petter Måhlén
Assignee: Mark Struberg
Priority: Minor
 Attachments: SCM-444.patch


 When doing 'mvn release:prepare' with a Git provider, a 'git push' command is 
 executed. This is not ideal because the push command can fail or push things 
 from the local repository that are not needed/wanted in the remote 
 repository. Some examples are:
 1. The local repository has two branches: master (tracking origin/master) and 
 dummy (tracking origin/dummy). The release is being made on the master 
 branch, and the dummy and origin/dummy branches have diverged. Running 
 'release:prepare' causes a 'git push', which will succeed for the master 
 branch (assuming that the release preparation has been made correctly) and 
 fail for the dummy branch (the two branches have diverged and need to be 
 merged or rebased). The release preparation aborts and the directory is left 
 in a somewhat inconsistent state where manual cleaning up is needed (removing 
 pom.xml.next files, changing versions to new-SNAPSHOT, etc.)
 2. The local repository has two branches: master (tracking origin/master) and 
 localtest (not in the origin repository). The localtest branch shouldn't be 
 published because it is just used for some temporary testing and doesn't even 
 work. It will be pushed during 'release:prepare'.
 Suggested behaviour: use 'git push origin currentbranch:currentbranch', 
 or even better, query for which remote repository to push to (found in 
 .git/config) and which branch to push from and to. For me, it would be great 
 to have a 'confirm push' before doing it so as to keep things clean, but 
 maybe that is quite complex.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (SCM-444) Git provider does 'git push' during 'mvn release:prepare' which causes unwanted problems

2009-09-03 Thread Olivier Lamy (JIRA)

 [ 
http://jira.codehaus.org/browse/SCM-444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivier Lamy updated SCM-444:
-

 Assignee: (was: Olivier Lamy)
Fix Version/s: (was: 1.3)

Won't fix ?

 Git provider does 'git push' during 'mvn release:prepare' which causes 
 unwanted problems
 

 Key: SCM-444
 URL: http://jira.codehaus.org/browse/SCM-444
 Project: Maven SCM
  Issue Type: Bug
  Components: maven-scm-provider-git
Affects Versions: 1.1
Reporter: Petter Måhlén
Priority: Minor

 When doing 'mvn release:prepare' with a Git provider, a 'git push' command is 
 executed. This is not ideal because the push command can fail or push things 
 from the local repository that are not needed/wanted in the remote 
 repository. Some examples are:
 1. The local repository has two branches: master (tracking origin/master) and 
 dummy (tracking origin/dummy). The release is being made on the master 
 branch, and the dummy and origin/dummy branches have diverged. Running 
 'release:prepare' causes a 'git push', which will succeed for the master 
 branch (assuming that the release preparation has been made correctly) and 
 fail for the dummy branch (the two branches have diverged and need to be 
 merged or rebased). The release preparation aborts and the directory is left 
 in a somewhat inconsistent state where manual cleaning up is needed (removing 
 pom.xml.next files, changing versions to new-SNAPSHOT, etc.)
 2. The local repository has two branches: master (tracking origin/master) and 
 localtest (not in the origin repository). The localtest branch shouldn't be 
 published because it is just used for some temporary testing and doesn't even 
 work. It will be pushed during 'release:prepare'.
 Suggested behaviour: use 'git push origin currentbranch:currentbranch', 
 or even better, query for which remote repository to push to (found in 
 .git/config) and which branch to push from and to. For me, it would be great 
 to have a 'confirm push' before doing it so as to keep things clean, but 
 maybe that is quite complex.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (SCM-444) Git provider does 'git push' during 'mvn release:prepare' which causes unwanted problems

2009-03-23 Thread Olivier Lamy (JIRA)

 [ 
http://jira.codehaus.org/browse/SCM-444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivier Lamy updated SCM-444:
-

Fix Version/s: (was: 1.2)
   1.3

 Git provider does 'git push' during 'mvn release:prepare' which causes 
 unwanted problems
 

 Key: SCM-444
 URL: http://jira.codehaus.org/browse/SCM-444
 Project: Maven SCM
  Issue Type: Bug
  Components: maven-scm-provider-git
Affects Versions: 1.1
Reporter: Petter Måhlén
Assignee: Olivier Lamy
Priority: Minor
 Fix For: 1.3


 When doing 'mvn release:prepare' with a Git provider, a 'git push' command is 
 executed. This is not ideal because the push command can fail or push things 
 from the local repository that are not needed/wanted in the remote 
 repository. Some examples are:
 1. The local repository has two branches: master (tracking origin/master) and 
 dummy (tracking origin/dummy). The release is being made on the master 
 branch, and the dummy and origin/dummy branches have diverged. Running 
 'release:prepare' causes a 'git push', which will succeed for the master 
 branch (assuming that the release preparation has been made correctly) and 
 fail for the dummy branch (the two branches have diverged and need to be 
 merged or rebased). The release preparation aborts and the directory is left 
 in a somewhat inconsistent state where manual cleaning up is needed (removing 
 pom.xml.next files, changing versions to new-SNAPSHOT, etc.)
 2. The local repository has two branches: master (tracking origin/master) and 
 localtest (not in the origin repository). The localtest branch shouldn't be 
 published because it is just used for some temporary testing and doesn't even 
 work. It will be pushed during 'release:prepare'.
 Suggested behaviour: use 'git push origin currentbranch:currentbranch', 
 or even better, query for which remote repository to push to (found in 
 .git/config) and which branch to push from and to. For me, it would be great 
 to have a 'confirm push' before doing it so as to keep things clean, but 
 maybe that is quite complex.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (SCM-444) Git provider does 'git push' during 'mvn release:prepare' which causes unwanted problems

2009-03-17 Thread Olivier Lamy (JIRA)

 [ 
http://jira.codehaus.org/browse/SCM-444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivier Lamy updated SCM-444:
-

 Assignee: Olivier Lamy
Fix Version/s: 1.2
  Component/s: maven-scm-provider-git

is it a release plugin issue or a scm git one ?

 Git provider does 'git push' during 'mvn release:prepare' which causes 
 unwanted problems
 

 Key: SCM-444
 URL: http://jira.codehaus.org/browse/SCM-444
 Project: Maven SCM
  Issue Type: Bug
  Components: maven-scm-provider-git
Affects Versions: 1.1
Reporter: Petter Måhlén
Assignee: Olivier Lamy
Priority: Minor
 Fix For: 1.2


 When doing 'mvn release:prepare' with a Git provider, a 'git push' command is 
 executed. This is not ideal because the push command can fail or push things 
 from the local repository that are not needed/wanted in the remote 
 repository. Some examples are:
 1. The local repository has two branches: master (tracking origin/master) and 
 dummy (tracking origin/dummy). The release is being made on the master 
 branch, and the dummy and origin/dummy branches have diverged. Running 
 'release:prepare' causes a 'git push', which will succeed for the master 
 branch (assuming that the release preparation has been made correctly) and 
 fail for the dummy branch (the two branches have diverged and need to be 
 merged or rebased). The release preparation aborts and the directory is left 
 in a somewhat inconsistent state where manual cleaning up is needed (removing 
 pom.xml.next files, changing versions to new-SNAPSHOT, etc.)
 2. The local repository has two branches: master (tracking origin/master) and 
 localtest (not in the origin repository). The localtest branch shouldn't be 
 published because it is just used for some temporary testing and doesn't even 
 work. It will be pushed during 'release:prepare'.
 Suggested behaviour: use 'git push origin currentbranch:currentbranch', 
 or even better, query for which remote repository to push to (found in 
 .git/config) and which branch to push from and to. For me, it would be great 
 to have a 'confirm push' before doing it so as to keep things clean, but 
 maybe that is quite complex.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira