-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Add revision options to API for git compiling (#19) #41
Conversation
@@ -85,8 +86,9 @@ class DownloadManager { | |||
} | |||
var fulfill; | |||
var promise = new Promise(x => fulfill = x); | |||
logger.info(`git clone ${url} ${folderPath}`); | |||
exec('git', ['clone', '--depth', '1', url, folderPath], {timeout: utils.minutes(2)}, (err, stdout, stderr) => { | |||
var args = ['clone', '--depth', '1', '-b', revision, url, folderPath]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NonlyNerd this doesn't seem to work for me, at least running locally:
$ git clone https://github.com/aslushnikov/latex-online --depth 1 -b 18b2131a29b1946e0180e2f58493eef988b2950d
Cloning into 'latex-online'...
warning: Could not find remote branch 18b2131a29b1946e0180e2f58493eef988b2950d to clone.
fatal: Remote branch 18b2131a29b1946e0180e2f58493eef988b2950d not found in upstream origin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad. I forgot the shallow thing and the handling of git-clone for revision ( I mixed up checkout and clone). For checking with a commit identifier, we have to work with a full clone, not a shallow one. The process would be : exec full clone on master, exec checkout on branch/tag/id in the cloned folder. I've updated the README to not disrupt users on the usage.
Looks like there's been no progress here - closing for now. Feel free to re-submit if this is still relevant. |
@aslushnikov @NonlyNerd can we re-open this? I'd love to finish the remaining work on it :) |
@rounakdatta feel free to send another PR! |
No description provided.