This repository was archived by the owner on Oct 12, 2022. It is now read-only.
Reduce system requirements#41
Merged
Merged
Conversation
added 8 commits
April 18, 2016 10:21
The oauth2-useragent will throw IllegalStateException if it can't find a compatible provider. Now that we have Device Flow, we can fallback to that.
Inspiration from http://superuser.com/a/623720
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Now that we have Device Flow that we can fall back to, we don't need to enforce:
Manual testing
Install Homebrew.
Temporarily inject the changes to
/usr/local/Library/Taps/homebrew/homebrew-core/Formula/git-credential-manager.rb(in the homebrew-core Git repo that's cloned as part of installing Homebrew).Install the (modified)
git-credential-managerformula:We know GCM 1.6.0 will refuse to run in
installmode without Java 7 (or Java 8) and JavaFX, so we'll uninstall it:Copy
git-credential-manager-1.7.1-SNAPSHOT.jarcontaining this branch's changes.Install the GCM:
java -jar git-credential-manager-1.7.1-SNAPSHOT.jar installPerform a Git operation on a Git remote hosted on VSTS and using HTTPS. For example:
git clone https://raisajavademo.visualstudio.com/DefaultCollection/_git/DeepSpaceThe OAuth 2.0 Device Flow is presented because we're on Java 6. Let's assume it will work and type Ctrl+C to abort it.
git-credential-manager-1.7.1-SNAPSHOT.jarcontaining this branch's changes.java -jar git-credential-manager-1.7.1-SNAPSHOT.jar installgit clone https://raisajavademo.visualstudio.com/DefaultCollection/_git/DeepSpacegit-credential-manager-1.7.1-SNAPSHOT.jarjava -jar git-credential-manager-1.7.1-SNAPSHOT.jar installgit clone https://raisajavademo.visualstudio.com/DefaultCollection/_git/DeepSpacegit-credential-manager-1.7.1-SNAPSHOT.jarjava -jar git-credential-manager-1.7.1-SNAPSHOT.jar installgit clone https://raisajavademo.visualstudio.com/DefaultCollection/_git/DeepSpacegit-credential-manager-1.7.1-SNAPSHOT.jarcontaining this branch's changes.java -jar git-credential-manager-1.7.1-SNAPSHOT.jar installgit clone https://raisajavademo.visualstudio.com/DefaultCollection/_git/DeepSpacegit-credential-manager-1.7.1-SNAPSHOT.jarcontaining this branch's changes.~/oss/openjfx/build/sdk/rt/bin/java -jar git-credential-manager-1.7.1-SNAPSHOT.jar installgit clone https://raisajavademo.visualstudio.com/DefaultCollection/_git/DeepSpaceMission accomplished!