livelykernel / js-git-browser Goto Github PK
View Code? Open in Web Editor NEWA build of js-git that is made to run in the browser via browserify and uses promises by default (that can be used in combination with await).
License: Other
A build of js-git that is made to run in the browser via browserify and uses promises by default (that can be used in combination with await).
License: Other
When invoking repo.saveAs
for a new commit using the github mixin, the date
value handed to the author
object (and supplied to encodePerson
and ultimately encodeDate
in jsgit.js) is expected to be an object with fields like "offset" and "seconds", but is actually a Javascript Date object. This causes "invalid date" errors to be thrown by encodeDate
and prevents commits from being written to GitHub.
I've "fixed" this for my own GitHub-centric use-case by simply hacking encodePerson
to use the Date object's toISOString()
, bypassing encodeDate
-- see the small change in my fork here:
https://github.com/musicog/js-git-browser/blob/fix-date-issue/jsgit.js#L10005
However I appreciate this might well break non-GitHub-centric use-cases. Perhaps you have an idea of how to fix this properly?
Many thanks for the helpful module!
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.