oridb / git9 Goto Github PK
View Code? Open in Web Editor NEWGit implementation for plan 9
License: MIT License
Git implementation for plan 9
License: MIT License
I was happily cloning repositories the other day but after upgrading today I came across this error:
term% git/clone gits://orib.dev/git9
fetching...
indexing 1712 objects: 100%
checking out repository...
drop: './drop' directory entry not found
failed to clone gits://orib.dev/git9: cleaning git9
Lines 89 to 92 in 1b4c50b
cpu% git/clone 'git://git.savannah.gnu.org/guix.git'
fetching...
indexing (0/288594):......................fetch 2966: Killed: Insufficient physical memory
clone failed.
cleaning up guix
Is this expected?
(I assume after commit c9a4dbe)
git/pull fails if $upstream is not set in the beginning of the script.
Here is my attempt of fixing it:
--- /mnt/git/object/718290ffe0bbf965abf0c4e4941fae78e1d1e23f/tree/pull Mon Nov 16 07:45:47 2020
+++ pull Mon Nov 16 01:46:36 2020
@@ -40,8 +40,10 @@ if(~ $#branch 0)
if(~ $allbranch 1)
branch=''
-if(~ $#upstream 0)
+if(~ $#upstream 0) {
remote=`{git/conf 'remote "origin".url'}
+ upstream=origin
+}
if not
remote=`{git/conf 'remote "'$upstream'".url'}
if(~ $#remote 0)
In the specs for git, trees should use the mode 040000 for the filemode on subdirectories however, repositories created by git9 seem to often use 040755 instead (ie the templates directory of this repo, or certain directories of the netsurf fork)
Compilation fails:
% mk install
for (i in conf fetch fs query save send walk)
mk $MKFLAGS $i.install
for (i in add branch clone commit diff export import init log merge pull push)
mk $MKFLAGS $i.rcinstall
cp git.1 /sys/man/1/git
mk $MKFLAGS /sys/lib/git/template
mk: no recipe to make 'date.8' in directory /<...>/git9-master
mk: mkdir -p /386/bin/git ... : exit status=rc 30861: mk 30864: error
Removing the date.$O\
line from $OFILES
works.
Set up a namespace where normal git commands work
The snap.tar.gz file (48 bytes) mentioned in the bootstrap instructions is not extractable on either Plan 9 (fails with “bad gzip file magic”) or macOS where various unzippers complain of invalid archives.
9legacy needs these changes from 9front:
delim{...}
syntax for rchold
commandI'll update the list as I find more issues.
Line 241 in 6586b50
Typo. It looks like a dot, but it isn't.
When running mk install
from both this git repo and 9front ports:
for (i in add branch clone commit diff export import init log merge pull push revert)
mk $MKFLAGS $i.rcinstall
cp git.1 /sys/man/1/git
cp gitfs.4 /sys/man/4/gitfs
cp common.rc /sys/lib/git/common.rc
mk $MKFLAGS /sys/lib/git/template
7l -o 7.conf conf.7 objset.7 ols.7 pack.7 proto.7 util.7 ref.7
??none??: incompatible type signatures 4c61292b(pack.7) and 6f310e8d(/arm64/lib/libbio.a(Bwrite)) for Bwrite
??none??: incompatible type signatures 9dd3ea4c(pack.7) and c0a3cfae(/arm64/lib/libbio.a(Bseek)) for Bseek
Bseek: incompatible type signatures 3ca7f837(pack.7) and e8a7e2d9(/arm64/lib/libbio.a(Bseek)) for Boffset
??none??: incompatible type signatures 4c61292b(pack.7) and 6f310e8d(/arm64/lib/libbio.a(Bread)) for Bread
badd: incompatible type signatures 34728a43(conf.7) and e8001435(/arm64/lib/libbio.a(Brdstr)) for Brdstr
Bfdopen: incompatible type signatures 63f5472a(pack.7) and 29f5223c(/arm64/lib/libbio.a(Bopen)) for Bopen
Bopen: incompatible type signatures f9b3864(pack.7) and bb9b2306(/arm64/lib/libbio.a(Bopen)) for Bterm
??none??: incompatible type signatures f9b3864(pack.7) and bb9b2306(/arm64/lib/libbio.a(Bgetc)) for Bgetc
mk: 7l -o ... : exit status=rc 18216: 7l 18218: error
mk: mkdir -p /arm64/bin/git ... : exit status=rc 18210: mk 18215: error
mk: . /sys/ports/Mk/lib.rc if(! ... : exit status=rc 18199: rc 18208: mk 18209: error
this is on an RPI3 and I ran sysupdate
earlier today.
thanks for your work, as always :)
Following the flow of:
git/clone git://git.eigenstate.org/ori/mc.git
git/log
cd subdir/name
git/add foo.c
diff bar.c /mnt/git/HEAD/
git/commit foo.c
git/push
Results in: refs/heads/master: 05b6274d9dd09127c34dee2650d4f10027235de8 => e7b4a4512dd46ae6b8eb46b25396c1a263c0e1b9
And git/log
shows:
cpu% git/log
Hash: e7b4a4512dd46ae6b8eb46b25396c1a263c0e1b9
Author: glenda <[email protected]>
Date: Thu Jan 16 02:10:40 CET 2020
9front
Hash: 05b6274d9dd09127c34dee2650d4f10027235de8
Author: Nicolas Montanaro <[email protected]>
Date: Thu Jan 16 02:08:48 CET 2020
test
However, no push is ever made, as the changes aren't reflected on GitHub - also tested with SourceHut, same thing. Repos were cloned with git+ssh
.
Thanks for your work on this btw and looking forward to IWP9 :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.