1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 02:11:15 +02:00

Remove git:// support in NIX_PATH

This didn't support specifying a revision/branch, and was restricted
to git:// URIs (since https:// or ssh:// would be ambiguous).
This commit is contained in:
Eelco Dolstra 2017-11-03 13:52:32 +01:00
parent ee6ac38848
commit 6cf7c6a6b0
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
4 changed files with 9 additions and 38 deletions

View file

@ -1,4 +1,3 @@
#include "fetchgit.hh"
#include "primops.hh"
#include "eval-inline.hh"
#include "download.hh"
@ -15,6 +14,14 @@ using namespace std::string_literals;
namespace nix {
struct GitInfo
{
Path storePath;
std::string rev;
std::string shortRev;
uint64_t revCount = 0;
};
GitInfo exportGit(ref<Store> store, const std::string & uri,
std::experimental::optional<std::string> ref, const std::string & rev,
const std::string & name)

View file

@ -1,24 +0,0 @@
#pragma once
#include <string>
#include "util.hh"
namespace nix {
class Store;
struct GitInfo
{
Path storePath;
std::string rev;
std::string shortRev;
uint64_t revCount = 0;
};
GitInfo exportGit(ref<Store> store, const std::string & uri,
std::experimental::optional<std::string> ref = {},
const std::string & rev = "",
const std::string & name = "");
}