Skip to content

Commit 3926d4c

Browse files
committed
+ add option to enable rebase.updateRefs in config
1 parent 09c14e2 commit 3926d4c

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

defaults/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ git_user_home: "{{ ansible_env.HOME | d('/root') }}"
77
git_user_name: "" # name shown in git history
88
git_user_email: "{{ git_user_name }}@gmail.com" # e-mail address shown in git history
99

10-
# Specific Git behaviour / configuration
10+
# Specific Git behavior / configuration
1111
git_push_strategy: "simple"
1212
git_pull_rebase: true
1313
git_rebase_autosquash: false
14+
git_branch_updaterefs: false
1415
git_branch_autosetuprebase: "never"
1516
git_alias_list:
1617
- {alias: 'bb', cmd: 'bisect bad'}

tasks/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
name: "rebase.autosquash"
3434
value: "{{ git_rebase_autosquash | string | lower }}"
3535

36+
- name: "set user global branch updateRefs to '{{ git_branch_updaterefs }}'"
37+
git_config:
38+
scope: global
39+
name: "rebase.updateRefs "
40+
value: "{{ git_branch_updaterefs }}"
41+
3642
- name: "set user global branch autosetuprebase to '{{ git_branch_autosetuprebase }}'"
3743
git_config:
3844
scope: global

0 commit comments

Comments
 (0)