about summary refs log tree commit diff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-10-30T09·25+0100
committerEelco Dolstra <edolstra@gmail.com>2017-10-30T09·25+0100
commit049322702b5629c1058249370d38ae8d23f47bdd (patch)
treedf7fa4ba752f38459466f880950036dfbb45b08c /src/libexpr
parent23ce4b33932260ad1f1bca4978ea274a1da1e0ad (diff)
fetchgit -> fetchGit
Almost all other primops are camelCase so no reason not to use that
here.
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/primops/fetchgit.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libexpr/primops/fetchgit.cc b/src/libexpr/primops/fetchgit.cc
index 4c5799bfed56..18107f5cd410 100644
--- a/src/libexpr/primops/fetchgit.cc
+++ b/src/libexpr/primops/fetchgit.cc
@@ -88,10 +88,10 @@ Path exportGit(ref<Store> store, const std::string & uri,
     return storePath;
 }
 
-static void prim_fetchgit(EvalState & state, const Pos & pos, Value * * args, Value & v)
+static void prim_fetchGit(EvalState & state, const Pos & pos, Value * * args, Value & v)
 {
     // FIXME: cut&paste from fetch().
-    if (state.restricted) throw Error("'fetchgit' is not allowed in restricted mode");
+    if (state.restricted) throw Error("'fetchGit' is not allowed in restricted mode");
 
     std::string url;
     std::string ref = "master";
@@ -118,7 +118,7 @@ static void prim_fetchgit(EvalState & state, const Pos & pos, Value * * args, Va
             else if (n == "name")
                 name = state.forceStringNoCtx(*attr.value, *attr.pos);
             else
-                throw EvalError("unsupported argument '%s' to 'fetchgit', at %s", attr.name, *attr.pos);
+                throw EvalError("unsupported argument '%s' to 'fetchGit', at %s", attr.name, *attr.pos);
         }
 
         if (url.empty())
@@ -132,6 +132,6 @@ static void prim_fetchgit(EvalState & state, const Pos & pos, Value * * args, Va
     mkString(v, storePath, PathSet({storePath}));
 }
 
-static RegisterPrimOp r("__fetchgit", 1, prim_fetchgit);
+static RegisterPrimOp r("fetchGit", 1, prim_fetchGit);
 
 }