-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
installation before and after update large size difference #1866
Comments
@NoahGorny You might be interested in this ticket as it relates to updates. My guess is that we are pulling the entire repository state when updating. |
This is caused by us using Line 231 in 58f2240
I played around with it, and the shallow copy is generally a no-go together with the |
@NoahGorny Why don't I get the latest version when I do the initial clone with depth 1? Then I don't have to update it (at least for a while) |
You do get the latest version, the latest |
I've run this script (thanks to Stack Overflow) to find large files in the git rev-list --objects --all |
git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' |
sed -n 's/^blob //p' |
awk '$2 >= 2^16' |
grep -vF --file=<(git ls-tree -r HEAD | awk '{print $3}') |
sort --numeric-sort --key=2 |
cut -c 1-12,41- There's no way to fix this without rewriting history, which breaks everything... |
closing as #1819 solves this problem |
When I do the initial install with "--depth 1" the total size of the ".bash-it" directory is 4.6 Mb, after running bash-it update it grows a lot to get to version 2.1.3.
During the update a lot for changes are printed scrolling over the screen.
Expected Behavior
Why is the initial install not getting all these merges already, so that when I run bash-it update it is already up-to-date?
Current Behavior
Initial install being very small is followed by a very large update asking me if I want to update to 2.1.3(ebe59c9)
Steps to Reproduce
Your Environment
bash-it show (plugins/themes/aliases)
):bash-it doctor
output:DEBUG: core: main: Loading libraries(except appearance)...
DEBUG: lib: helpers: Loading library file...
DEBUG: lib: log: Loading library file...
DEBUG: lib: preview: Loading library file...
DEBUG: lib: search: Loading library file...
DEBUG: lib: utilities: Loading library file...
DEBUG: vendor: Loading "preexec"...
DEBUG: core: reloader: Loading "bobby" theme...
WARN: themes: base: Command 'battery_percentage' does not exist!
DEBUG: core: main: Loading custom aliases, completion, plugins...
DEBUG: core: main: Loading general custom files...
The text was updated successfully, but these errors were encountered: