Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Error: 1 conflict prevents checkout - when merging clean working directory #941

Copy link
Copy link
@rolatsch

Description

@rolatsch
Issue body actions

Hello,
i am trying to pull changes from a Repository. My working directory is clean but i am getting the error stated in the title.

My merge code looks like this:

var mOpts = new NodeGit.MergeOptions();
NodeGit.Merge.initOptions(mOpts, 1);
mOpts.fileFavor = NodeGit.Merge.FILE_FAVOR.THEIRS;
repository.mergeBranches(dbRepo.branch, 'origin/' + dbRepo.branch, signature, NodeGit.Merge.PREFERENCE.FASTFORWARD_ONLY, mOpts);

I'm not sure if this is the right way to use the merge options.

Thanks in advance.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.