Skip to content

Commit 03a96af

Browse files
committed
WIP - try regular index
1 parent e82d98f commit 03a96af

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/subrepo/commands.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,18 @@ def command_push(subdir, remote: nil, branch: nil)
188188
name: repo.config["user.name"],
189189
email: repo.config["user.email"]
190190
}
191-
rebase = Rugged::Rebase.new(repo, mapped_commit, upstream_commit, inmemory: true)
191+
rebase = Rugged::Rebase.new(repo, mapped_commit, upstream_commit)
192192
while (result = rebase.next())
193193
# NOTE: Expect result to contain the in-memory index
194-
index = rebase.inmemory_index
194+
#index = rebase.inmemory_index
195195
# NOTE: We would like to do some conflict resolution here, i.e.,
196196
# start a merge editor, but the in-memory index has the wrong owner
197197
# so can't find its repo.
198-
raise if index.conflicts?
198+
#raise if index.conflicts?
199+
200+
# NOTE: Some conflicts are trivial!
201+
require 'pry'
202+
binding.pry
199203
last_commit_sha = rebase.commit(committer: committer)
200204
end
201205
rebase.finish(committer)

0 commit comments

Comments
 (0)