MCPcopy Create free account
hub / github.com/git/git / xsetenv

Function xsetenv

wrapper.c:162–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void xsetenv(const char *name, const char *value, int overwrite)
163{
164 if (setenv(name, value, overwrite))
165 die_errno(_("could not setenv '%s'"), name ? name : "(null)");
166}
167
168/**
169 * xopen() is the same as open(), but it die()s if the open() fails.

Callers 3

set_git_dir_1Function · 0.85
cmd_upload_packFunction · 0.85

Calls 1

die_errnoFunction · 0.85

Tested by 1