]> git.ipfire.org Git - thirdparty/git.git/blobdiff - branch.c
advice: remove read uses of most global `advice_` variables
[thirdparty/git.git] / branch.c
index 7a88a4861e7eb41e5415f141d4d143170c8ca5e0..07a46430b3846f0fa4595f9ea0f98c2523e8d5f1 100644 (file)
--- a/branch.c
+++ b/branch.c
@@ -271,7 +271,7 @@ void create_branch(struct repository *r,
        real_ref = NULL;
        if (get_oid_mb(start_name, &oid)) {
                if (explicit_tracking) {
-                       if (advice_set_upstream_failure) {
+                       if (advice_enabled(ADVICE_SET_UPSTREAM_FAILURE)) {
                                error(_(upstream_missing), start_name);
                                advise(_(upstream_advice));
                                exit(1);