Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

git-credential-manager 1.5.0 #50293

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions Library/Formula/git-credential-manager.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
class GitCredentialManager < Formula
desc "Stores Git credentials for Visual Studio Team Services"
homepage "https://java.visualstudio.com/Docs/tools/gitcredentialmanager"
url "https://github.com/Microsoft/Git-Credential-Manager-for-Mac-and-Linux/releases/download/git-credential-manager-1.4.0/git-credential-manager-1.4.0.jar"
sha256 "9a2c405b1876753734774fc63dc01ce8751d4af1a892bea59f823d996624efec"
url "https://github.com/Microsoft/Git-Credential-Manager-for-Mac-and-Linux/releases/download/git-credential-manager-1.5.0/git-credential-manager-1.5.0.jar"
sha256 "e5e685c6938e0955dabe91829d3bb4aaea9bce2bb1c6ecc6f405b74b4ce2b346"

bottle :unneeded

depends_on :java => "1.7+"
depends_on :java => "1.8+" if MacOS.version >= :el_capitan
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can make this a single block conditional rather than two:

if MacOS.version >= :el_capitan
  depends_on :java => "1.8+"
else
  depends_on :java => "1.7+"
end

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can make this a single block conditional

Done in 346d83d.

depends_on :java => "1.7+" unless MacOS.version >= :el_capitan

def install
libexec.install "git-credential-manager-#{version}.jar"
Expand Down