Skip to content

File not found on rebase #1318

Description

@tjcarroll11

I'm running a pretty straightforward rebase:

return repo.rebaseBranches(
     'refs/heads/test',
     'refs/heads/master',
     null,
     nodegit.Signature.now('Test', 'test@example.com'),
     rebase => {
         console.log("One operation");
         return Promise.resolve();
     },
     rebaseMetadata => {
         console.log("Finished rebase");
         return Promise.resolve();
     }
)

Every time I run this, I get the following error before the finish function is run but after all operations are run

{Error: ENOENT: no such file or directory, open '.../.git/rebase-merge/rewritten'
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '.../.git/rebase-merge/rewritten' }

My working directory is clean. When I go to my terminal, I can run git rebase --continue, and the rebase works with the following message

Already applied: 0001 temp
All done.

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