Skip to content

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

Description

@rolatsch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions