Git Product home page Git Product logo

Comments (3)

mattmccutchen avatar mattmccutchen commented on August 18, 2024 1

Released in Braid 1.1.8. After so much work on infrastructure for future maintainability, it's fun to deliver a small feature for a change.

from braid.

olfway avatar olfway commented on August 18, 2024

Just ran into this bug:

/home/user/chadburn > braid add 'https://github.com/PremoWeb/chadburn.git' chadburn -v
Braid: Executing `git --version` in /home/user/chadburn
Braid: Executing `git rev-parse --is-inside-work-tree` in /home/user/chadburn
Braid: Executing `git rev-parse --show-prefix` in /home/user/chadburn
Braid: Executing `git status` in /home/user/chadburn
Braid: Executing `git rev-parse HEAD` in /home/user/chadburn
Braid: Executing `git add .braids.json` in /home/user/chadburn
Braid: Adding mirror of 'https://github.com/PremoWeb/chadburn.git'.
Braid: Executing `git --version` in /home/user/chadburn
Braid: Executing `git rev-parse --is-inside-work-tree` in /home/user/chadburn
Braid: Executing `git rev-parse --show-prefix` in /home/user/chadburn
Braid: Executing `git config remote.master/braid/chadburn.url` in /home/user/chadburn
Braid: Setup: Mirror 'chadburn' already has a remote. Replacing it (force)
Braid: Executing `git remote rm master/braid/chadburn` in /home/user/chadburn
Braid: Setup: Creating remote for 'chadburn'.
Braid: Executing `git remote add master/braid/chadburn /Users/unlimint/.braid/cache/https___github.com_PremoWeb_chadburn.git` in /home/user/chadburn
Braid: Executing `git config remote.master/braid/chadburn.url` in /home/user/chadburn
Braid: Executing `git fetch` in /home/user/.braid/cache/https___github.com_PremoWeb_chadburn.git
Braid: Executing `git fetch -n master/braid/chadburn` in /home/user/chadburn
Braid: Executing `git rev-parse master/braid/chadburn/master^{commit}` in /home/user/chadburn
Braid: Resetting to '2d5945f'.
Braid: Executing `git reset --hard 2d5945f4109faee2e82dcf2ec3e802b6dd15ca53` in /home/user/chadburn
Braid: Error: unknown revision: master/braid/chadburn/master^{commit}

It wasn't obvious that the problem were with remote branch name

from braid.

mattmccutchen avatar mattmccutchen commented on August 18, 2024

I have a fix for the basic case (braid add should use the default branch of the upstream repository) mostly done and will submit a PR soon; it turned out not to be too messy.

AFAIK, the proposal for a standard way for a repository to signal that a branch has been renamed never went anywhere, and in any case, supporting that in Braid would be a low priority for me, so I'll declare it out of scope of this issue.

from braid.

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.