Giter Site home page Giter Site logo

Comments (4)

glensc avatar glensc commented on July 18, 2024

my docker image version:

# docker images
REPOSITORY                                    TAG                 IMAGE ID            CREATED             SIZE
smarketshq/marge-bot                          latest              22433019da23        47 years ago        275.9 MB

from marge-bot.

glensc avatar glensc commented on July 18, 2024

also i think git reset --hard master origin/master is needed if someone does force push on master branch. but i still think it's just simplier to rebase against origin/master than local master branch

default git fetch configuration will overwrite changes in origin/*

from marge-bot.

jcpetruzza avatar jcpetruzza commented on July 18, 2024

I'm not sure I understand if there is indeed an issue here. It is true that in the end the, repo points to (local) master and not origin/master but as I understand it that shouldn't be a problem:

Assume we start with the repo in master, which as you observe, may be different from origin/master. We then do (following the pasted log above):

  1. git fetch origin, so we are still in master, but origin/master and origin/merge-request-branch are up-to date.
  2. git checkout -B merge-request-branch origin/merge-request-branch --, so now the working branch is the branch to be rebased
  3. git rebase origin/master, here we rebase against the remote master branch, and fail because of a merge conflict.

So up to this point, everything has been done as one would expect. The following steps are just clean-ups, aimed to leaving the repo i) in a usable state (git rebase --abort), and ii) with a minimum number of branches (git checkout master; git branch -D merge-request-branch).

So we end up in master only because it is a branch we can assume exists locally. Does this make sense?

from marge-bot.

glensc avatar glensc commented on July 18, 2024

ok, looking the log i pasted, indeed the rebase is done on origin/master after fetch origin. so it's behaving as i suggested. and i have no clues why the rebase failed in that scenario.

closing as i have no more information or suggestions to add.

thanks for looking into this!

from marge-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.