Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

NonlyNerd
Copy link

No description provided.

@@ -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];
Copy link
Owner

@aslushnikov aslushnikov Jan 27, 2018

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

Copy link
Author

@NonlyNerd NonlyNerd Jan 27, 2018

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.

@aslushnikov
Copy link
Owner

Looks like there's been no progress here - closing for now. Feel free to re-submit if this is still relevant.

@rounakdatta
Copy link

@aslushnikov @NonlyNerd can we re-open this? I'd love to finish the remaining work on it :)

@aslushnikov
Copy link
Owner

@rounakdatta feel free to send another PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants