Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.
/ ex_parsec Public archive

Commit

Permalink
Fix loading the Mix project when not building in a Git repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Rønne Petersen committed Aug 22, 2014
1 parent 69adefc commit 07bbf4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ defmodule ExParsec.Mixfile do
end

defp docs() do
{ref, 0} = System.cmd("git", ["rev-parse", "--verify", "--quiet", "HEAD"])
{ref, x} = System.cmd("git", ["rev-parse", "--verify", "--quiet", "HEAD"])

if x != 0, do: ref = "master"

[main: "README",
readme: true,
Expand Down

0 comments on commit 07bbf4b

Please sign in to comment.