I am unable to push tags while using, https://isomorphic-git.org/docs/en/push.
Is there something I am missing?
Here is my snippet for push,
git.push({fs, http, dir: repo_path_on_local, remote: remote_name, ref: branch_name})
0 additions and 0 deletions
). Any advice on how to handle this? Thank you.
const dir = '/test-repo';
await fs.promises.mkdir(`${dir}/new_folder`)
await fs.promises.writeFile(`${dir}/new_folder/new-file.txt`, `# NEW FILE`)
await git.add({ fs, dir: `${dir}/new_folder`, filepath: 'new-file.txt' })
let status = await git.status({ fs, dir: `${dir}/new_folder`, filepath: 'new-file.txt' })
console.log(status) // "added" is returned
let sha = await git.commit({
fs,
dir,
message: 'Added new-file.txt',
author: { name: 'test', email: 'test@test.com' }
})
console.log(sha) // sha is returned. no errors
let pushResult = await git.push({
fs,
http,
dir,
url: 'https://username:token@github.com/user/test-repo',
})
console.log(pushResult) // "ok" is returned. can see the commit in GitHub but 0 files are added/changed
Failed to finalize commit "GitPushError: One or more branches were not updated: - refs/heads/master: failed to update ref"
if send some concurrent requests...
so it's safe to say that multiple pushes on the same repository at the same time is impossible in isomorphic-git? I need to create some sort of lock
I believe locks are required. We use a lock to ensure our app doesn’t try to perform simultaneous operations on a repo. (Though this can’t prevent accessing the repo from outside the app.) @thelinuxlich
the two that i have are:
git rev-parse HEAD:$(basename $(pwd))
andgit log --pretty=format:'%cI' -n 1 -- .
dir
and gitdir
i tried
Since updating from 0.70.7 to 1.7.0 I'm keep getting the following error involving CacheFS, which causes certain operations to fail (e.g. cloning an existing repo):
errors.js:4 Uncaught (in promise) Error: ENOENT: [...whatever project path...]/.git/config
at CacheFS._lookup (CacheFS.js:115)
at CacheFS.stat (CacheFS.js:213)
at PromisifiedFS.stat (PromisifiedFS.js:290)
at PromisifiedFS.stat (PromisifiedFS.js:124)
What do I need to do to resolve this?
I am getting this error in lighting-fs:
lightning-fs.js, line 1: TypeError: tSymbol.iterator.next is not a function
Hey everyone
statusMatrix returns all files as [ 1, 2, 1]
im calling the code like this:
const matrix = await git.statusMatrix({ fs: this.fs, dir: 'D:/_dev/_repotest/branch' ) })
.gitignore: 1 2 1
firstfile.md: 1 2 1
folder1/folder2/test2.md: 1 2 1
folder1/test.md: 1 1 1
new5.md: 1 2 1
nr4.md: 1 2 1
readme.md: 1 2 1
secondfile.md: 1 2 1
thiirdfile.md: 1 2 1
what am i doing wrong? (using nodejs)
and there are no changes currently
isomorphic-git
GitHub org at some point, but honestly, I'd take advantage of the situation to rebrand with a less annoying name.