Comments (3)
I looked into the code and found a lot of
.git
got treated as dir, and they usually appear after--separate-git-dir
.
I guess the reason that drones got cloned with
--separate-git-dir
but not in the usual submodule style is to be able to checkout its branch.
The code in borg
that involves --separate-git-dir
converts repositories that were previously cloned using git clone
, borg-clone
, ... to move the git data to ~/.config/emacs/.git/modules/PKG/
, where git submodule
and bort-assimilate
would have put them, had they been used to clone the repository.
I.e., the drones get cloned "as usual for git modules", if you use borg-assimilate
(which implies --separate-git-dir
), or the get converted after the fact (which involves using --separate-git-dir
). The end result is the same.
Where this seems to go wrong is that the cleanup code assumes that ~/.config/emacs/.git
itself is a directory.
I'll look into that at some point, but am rather busy right now.
You might want to consider using the same repository for your emacs configuration and your other dotfiles. I.e., don't make ~/.config/emacs
itself a repository, add the ~/.config/emacs/lib/PKG
repositories as modules of the ~/
repository. You will have to go through the "Bootstrapping from scratch" steps and make some adjustments to do this. Others have done that before I believe. You might be able to find something about it in older issues.
I deleted
.git
and symlinked../.git/modules/emacs
to.git
and after that everything seems to work flawlessly, wondering why .git gets designed like this in git submodule.
I thought you did that intentionally:
I cloned the repo as a submodule of my dotfiles for independency.
from emacs.g.
I did not touch .git
words but deleted the .git
file and symlinked ../.git/modules/emacs
to .git
and after that everything seems to work flawlessly, wondering why .git gets designed like this in git submodule.
from emacs.g.
Thank you for your prompt reply!
Since symlinking ../.git/modules/emacs
to .git
actually works™,I may keep on doing this. It is just a little troublesome everytime I or someone deploy my dotfiles, but a makefile should automate all these procedures.
from emacs.g.
Related Issues (17)
- Gitlab link 404's HOT 3
- Missing magit/ghub drone. HOT 4
- `epkg` SHA in .gitmodules isn't present in repository HOT 1
- [Documentation] Howto create a private fork that still tracks emacs.g? HOT 4
- Clarify emacs.g License HOT 2
- submodules all on read/write repos HOT 2
- Running `make bootstrap` fails because var/ does not exist HOT 3
- How to use this starter to begin? HOT 14
- Cannot load sisyphus: (file-missing "Cannot open load file" "No such file or directory" "llama") HOT 1
- dash is loaded twice HOT 1
- Warnings on `make bootstrap` HOT 3
- Subproject commit-foo-dirty HOT 4
- use-package :bind with :map keyword does not work HOT 7
- How to manually add a submodule remote? HOT 7
- Common ways to define some complex drones HOT 2
- assimilating results in "Not a git repository" error HOT 3
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 emacs.g.