Comments (8)
Can you post the complete clone command you are running and the complete output of the command?
from yadm.
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.
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.
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.
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.
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.
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@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)
- Bash completions not working without git from homebrew HOT 2
- YADM pushes to Github using the wrong user credentials? HOT 2
- How can I resolve conflicting files HOT 3
- Release the Fedora 38 repos on openSUSE Build Service HOT 1
- Alt files shoudn't be tracked
- yadm.io is down. HOT 2
- yadm not applying git filter HOT 2
- Deleting symlinks when run under sudo HOT 3
- Fedora 39 repo HOT 2
- document how to check if a variable is unset HOT 2
- linux file being linked on darwin HOT 2
- Author identity unknown after setting the identity HOT 2
- vim tty bootstrap HOT 2
- Encryption, Secrets and Password Management Roadmap HOT 2
- Fedora 40 repo HOT 1
- How can I use multiple classes in default template? HOT 6
- env substitutions not occuring with default template processor HOT 2
- Makefile does not install completions
- Env variables don't work in if-else-endif templates HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yadm.