]> git.ipfire.org Git - thirdparty/git.git/blobdiff - wrapper.c
t7004: use "test-tool ref-store" for reflog inspection
[thirdparty/git.git] / wrapper.c
index 7c6586af3210009e991ccd06756ce94ce8de5962..36e12119d76556a710dbc8da2953a4710e630fdb 100644 (file)
--- a/wrapper.c
+++ b/wrapper.c
@@ -145,6 +145,12 @@ void *xcalloc(size_t nmemb, size_t size)
        return ret;
 }
 
+void xsetenv(const char *name, const char *value, int overwrite)
+{
+       if (setenv(name, value, overwrite))
+               die_errno(_("could not setenv '%s'"), name ? name : "(null)");
+}
+
 /*
  * Limit size of IO chunks, because huge chunks only cause pain.  OS X
  * 64-bit is buggy, returning EINVAL if len >= INT_MAX; and even in