Skip to content

In case of reabese of repository with submodules, submodules are left… - #1788

Open
igadmg wants to merge 33 commits into
libgit2:masterfrom
igadmg:master
Open

In case of reabese of repository with submodules, submodules are left…#1788
igadmg wants to merge 33 commits into
libgit2:masterfrom
igadmg:master

Conversation

@igadmg

@igadmg igadmg commented Apr 25, 2020

Copy link
Copy Markdown

… in non updatred state and prevent rebase from continuing.

Fixed that by updating submodules after rebase was initialized.

Comment thread LibGit2Sharp/Rebase.cs Outdated
ontoRefAnnotatedCommitHandle,
gitRebaseOptions))
{
this.repository.Submodules.UpdateAll(new SubmoduleUpdateOptions());

@AraHaan AraHaan Jun 3, 2020

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I would like it as an optional parameter so we can override if it we want to pls.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

What exactly you want to override here? AFAIK without that line rebase will not be possible to make.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I am saying extract the new SubmoduleUpdateOptions() to an optional param that you pass into UpdateAll.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Ok, got it. Added them to RebaseOptions, i think that is most appropriate place.

Comment thread LibGit2Sharp/RebaseOptions.cs Outdated
public CheckoutFileConflictStrategy FileConflictStrategy { get; set; }

/// <summary>
/// Submodule update options passed to submodule updates on rtebase step.

@AraHaan AraHaan Jun 5, 2020

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

typo on rebase?

}


public virtual void UpdateAll(SubmoduleUpdateOptions options)

@AraHaan AraHaan Jun 9, 2020

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

SubmoduleCollection.cs(74,29): error CS1591: Missing XML comment for publicly visible type or member 'SubmoduleCollection.UpdateAll(SubmoduleUpdateOptions)' [/home/vsts/work/1/s/LibGit2Sharp/LibGit2Sharp.csproj]

This is making the build status fail. I noticed this afterwards.

@AraHaan

AraHaan commented Jan 20, 2021

Copy link
Copy Markdown

@yatagarasu25 the build still fails because missing docs on that publicly visible member.

@AraHaan

AraHaan commented Jan 20, 2021

Copy link
Copy Markdown

@yatagarasu25 I just opened a pr to your fork to fix this pr.

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