Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
Merge remote-tracking branch 'origin/main'
# Conflicts: # apps/web/src/lib/skfProject.ts
This commit is contained in:
@@ -364,6 +364,23 @@ describe("SketchForge .skf project packages", () => {
|
||||
expect(restored.shapes[1].importedMesh?.positions).toEqual(mesh.positions);
|
||||
});
|
||||
|
||||
it("exports in a far-western timezone without underflowing the ZIP 1980 date floor", async () => {
|
||||
// ZIP stores entry mtimes as DOS dates, and fflate encodes them with local-time
|
||||
// getters, rejecting years outside 1980-2099 with "date not in range 1980-2099".
|
||||
// A UTC-pinned epoch rolls back to 1979 west of UTC, so exercise the fix under the
|
||||
// most extreme western offset. Node re-reads process.env.TZ per Date operation.
|
||||
const originalTz = process.env.TZ;
|
||||
process.env.TZ = "Etc/GMT+12";
|
||||
try {
|
||||
const exported = await exportSkfProject(input([shape("box")]));
|
||||
const restored = await importSkfProject(exported);
|
||||
expect(restored.shapes[0].kind).toBe("box");
|
||||
} finally {
|
||||
if (originalTz === undefined) delete process.env.TZ;
|
||||
else process.env.TZ = originalTz;
|
||||
}
|
||||
});
|
||||
|
||||
it("migrates the documented v0 JSON project without changing IDs", async () => {
|
||||
const box = shape("box", "legacy-box");
|
||||
const legacy = strToU8(JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user