Giter VIP home page Giter VIP logo

Comments (6)

ob avatar ob commented on May 22, 2024

Looking at the git history for the generated project, I see

% git log --oneline --graph
*   af64a61 (HEAD) Merge pull request #1 from ob:ob-patch-1
|\
| * 21171d1 (refs/copybara_fetch/refs/pull/1/head) Update afile
| * 55cc1e4 Project import generated by Copybara.
| * 80b7e76 Project import generated by Copybara.
* d0b3be8 (copybara/resolvedPush-dacca1cc-cf6b-45dc-976c-189a5df3f5aa, refs/copybara_fetch/master) add somedir/.gitignore
* b4e91bd add some files
* 36eb4a9 Initial commit

Looking at the two tips of the commit history:

% git ls-tree -r d0b3be8
100644 blob 82f3a88e17b409ae206b19e55f5c5b23eb83bcc1	.gitignore
100644 blob 261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64	LICENSE
100644 blob 0f19791fc0d465f4226ee44b07a50dbad869e493	README.md
100644 blob 86e041dad66a19b9518b83b78865015f62662f75	somedir/.gitignore
100644 blob 257cc5642cb1a054f08cc83f2d943e56fd3ebe99	somedir/afile
100644 blob 257cc5642cb1a054f08cc83f2d943e56fd3ebe99	somedir/bfile

which is the state of my SoT, and

% git ls-tree -r 21171d1
100644 blob 86e041dad66a19b9518b83b78865015f62662f75	.gitignore
100644 blob 3bd1f0e29744a1f32b08d5650e62e2e62afb177c	afile

and the merge:

% git ls-tree -r af64a61
100644 blob 86e041dad66a19b9518b83b78865015f62662f75	.gitignore
100644 blob 3bd1f0e29744a1f32b08d5650e62e2e62afb177c	afile
100644 blob 86e041dad66a19b9518b83b78865015f62662f75	somedir/.gitignore
100644 blob 3bd1f0e29744a1f32b08d5650e62e2e62afb177c	somedir/afile

It's almost like the core.move() operation here is not removing the source files.

from copybara.

ob avatar ob commented on May 22, 2024

One thing to note when running this again with -v and reading the logs is this:

Executing [git '--git-dir=/Users/obonilla/copybara/cache/git_repos/https%3A%2F%2Fgithub%2Ecom%2Fob%2Fcb-sot%2Egit' '--work-tree=/Users/obonilla/copybara/temp/workdir606592250108702709/checkout' merge-base d0b3be83ebc842c8dd6feae051391d7a82adf9b8 21171d13a57703bae681c45dd57b2e76bffb1ab5]
Command 'git' finished in 00:00.011. Process exited with status 1

Not sure if that's related though...

from copybara.

mikelalcon avatar mikelalcon commented on May 22, 2024

from copybara.

ob avatar ob commented on May 22, 2024

from copybara.

mikelalcon avatar mikelalcon commented on May 22, 2024

from copybara.

mikelalcon avatar mikelalcon commented on May 22, 2024

Hi Oscar, did it work for you?

from copybara.

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.