[jira] (SCM-530) Add support for git submodules to git SCM provider

2013-11-04 Thread Tomasz Krakowiak (JIRA)

[ 
https://jira.codehaus.org/browse/SCM-530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=335108#comment-335108
 ] 

Tomasz Krakowiak commented on SCM-530:
--

Probably recursive tagging option in scm and release plugins would also be 
nice. But if we would like to use different tag's in submodules it would 
require change in scm api.


> Add support for git submodules to git SCM provider
> --
>
> Key: SCM-530
> URL: https://jira.codehaus.org/browse/SCM-530
> Project: Maven SCM
>  Issue Type: New Feature
>  Components: maven-scm-provider-git
>Affects Versions: 1.3
>Reporter: Chas Emerick
>
> Pretty self-explanatory.  Example fallout of this issue: release:perform on a 
> project that refers to other git repos as submodules cannot succeed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] (SCM-530) Add support for git submodules to git SCM provider

2013-11-04 Thread Tomasz Krakowiak (JIRA)

[ 
https://jira.codehaus.org/browse/SCM-530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=335106#comment-335106
 ] 

Tomasz Krakowiak commented on SCM-530:
--

I would like to implement support of submodules in git scm providers.
This is what I think it should be implemented (pseudocode):
{code}
checkin(repository, fileSet, options){
  gitmodules = listGitSubmodules();// Non-recursive
  for(gitmodule : gitmodules){
moduleFileSet = narrowFileSetToModule(repository, gitmodule, fileset); // 
Returns subset of files narrowed
   // 
to those contained in module's directory.
   // 
(relative paths are resolved to absolute
   // 
paths or relative to module's directory)
if(!isEmpty(moduleFileSet)){
  if(!isSubmoduleInitialized(repository, gitmodule)){
return "Git submodule " + gitmodule + "is not initialized";
  }
  moduleRepository = submoduleRepository(repository, submodule);
  result = checkin(moduleRepository, moduleFileSet, options);
  if(!isSuccess(result)){
return result;
  }
  fileSet.add(submodule);
}
  }
  ... // Do the same thing as currently.
}
{code}
I'm only worried about using scm connection for submodules not configured in 
pom. Still everything should work as long everything is properly configured in 
git (i would not recommend providing submodule url overriding).

> Add support for git submodules to git SCM provider
> --
>
> Key: SCM-530
> URL: https://jira.codehaus.org/browse/SCM-530
> Project: Maven SCM
>  Issue Type: New Feature
>  Components: maven-scm-provider-git
>Affects Versions: 1.3
>Reporter: Chas Emerick
>
> Pretty self-explanatory.  Example fallout of this issue: release:perform on a 
> project that refers to other git repos as submodules cannot succeed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] (SCM-530) Add support for git submodules to git SCM provider

2013-09-03 Thread sital anadkat (JIRA)

[ 
https://jira.codehaus.org/browse/SCM-530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=332261#comment-332261
 ] 

sital anadkat commented on SCM-530:
---

Hi , I supplied a patch to use git submodules, please see the following link 
http://jira.codehaus.org/browse/MRELEASE-726#comment-324432

> Add support for git submodules to git SCM provider
> --
>
> Key: SCM-530
> URL: https://jira.codehaus.org/browse/SCM-530
> Project: Maven SCM
>  Issue Type: New Feature
>  Components: maven-scm-provider-git
>Affects Versions: 1.3
>Reporter: Chas Emerick
>
> Pretty self-explanatory.  Example fallout of this issue: release:perform on a 
> project that refers to other git repos as submodules cannot succeed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira