Giter VIP home page Giter VIP logo

Comments (8)

TheLocehiliosan avatar TheLocehiliosan commented on June 29, 2024

Can you post the complete clone command you are running and the complete output of the command?

from yadm.

perrefe avatar perrefe commented on June 29, 2024

The clone command is executed by yadm, so it is:

"$GIT_PROGRAM" -c core.sharedrepository=0600 clone --no-checkout \
                      --separate-git-dir="$YADM_REPO" "${args[@]}" repo.git

after executing yadm clone --bootstrap https://github.com/me/mydotfiles the worktree at $HOME doesn't have any file, so bootstrap script is not executed, and yadm status shows

Changes to be committed:
   (use "git restore --staged <file>..." to unstage)
deleted: ../../../.config/yadm/bootstrap

from yadm.

perrefe avatar perrefe commented on June 29, 2024

IMHO I think the "$GIT_PROGRAM" reset --quiet -- . command should just be "$GIT_PROGRAM" reset --quiet, the dot in the pathspec represents the same as not specifying anything and maybe this carries some compatibility issues.

(unless you are thinking in some whitelist feature that can rely in the reset pathspec)

from yadm.

TheLocehiliosan avatar TheLocehiliosan commented on June 29, 2024

From the description above it sounds like you do not have your bootstrap program committed to the repository. Is it possible to show me an example dotfiles repo that exhibits this problem?

from yadm.

TheLocehiliosan avatar TheLocehiliosan commented on June 29, 2024

Also, by clone command, I meant for you to share the "yadm clone" command and all of its output (not the "git clone" command that yadm runs).

from yadm.

perrefe avatar perrefe commented on June 29, 2024

Here is an example dot files repo: https://github.com/perrefe/dotfiles.git

The clone command I'm using is:
yadm clone --bootstrap https://github.com/perrefe/dotfiles.git

from yadm.

TheLocehiliosan avatar TheLocehiliosan commented on June 29, 2024

Can you show me the full output of the yadm clone command? I've cloned that repo, and did not encounter any issue (when running the bootstrap too).

from yadm.

perrefe avatar perrefe commented on June 29, 2024
perrefe@mb ~ %ls -l .config/                      
total 0
perrefe@mb ~ %ls -l .local/share                  
total 0
perrefe@mb ~ %
perrefe@mb ~ %yadm clone --bootstrap https://github.com/perrefe/dotfiles.git
Cloning into 'repo.git'...
remote: Enumerating objects: 55, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (38/38), done.
remote: Total 55 (delta 9), reused 55 (delta 9), pack-reused 0
Receiving objects: 100% (55/55), 17.85 KiB | 299.00 KiB/s, done.
Resolving deltas: 100% (9/9), done.
Executing /Users/perrefe/.config/yadm/bootstrap

                 _            
 _   _  __ _  __| |_ __ ___   
| | | |/ _` |/ _` | '_ ` _ \  
| |_| | (_| | (_| | | | | | | 
 \__, |\__,_|\__,_|_| |_| |_| 
 |___/                        
                  ...bootstrap

perrefe@mb ~ %ls -l .config/                                                
total 0
drwxr-xr-x  6 perrefe  staff  192 Mar  6 21:38 nvim
drwxr-xr-x  3 perrefe  staff   96 Mar  6 21:38 yadm
perrefe@mb ~ %rm -rf .config/nvim .config/yadm                             
perrefe@mb ~ %ls -l .local/share/yadm                                       
total 0
drwx------  12 perrefe  staff  384 Mar  6 21:38 repo.git
perrefe@mb ~ %rm -rf .local/share/yadm

It's working now :| and cannot reproduce anymore.

A very important thing was changed by a system update applied yesterday

perrefe@mb ~ %git --version
git version 2.39.3 (Apple Git-146)

I'm not sure if that was the real problem, but the thing is now operational. I really appreciate all your attention, thanks!

from yadm.

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.