Browse Source

Fix spaces vs tabs

pull/5/head
Ricardo Barbedo 7 years ago
parent
commit
5171219bea
1 changed files with 10 additions and 10 deletions
  1. +10
    -10
      scripts/git_wrapper.tcl

+ 10
- 10
scripts/git_wrapper.tcl View File

@ -18,16 +18,16 @@ namespace eval ::git_wrapper {
proc git {args} {
set command [lindex $args 0]
# Change directory project directory if not in it yet
set proj_dir [regsub {\/work$} [get_property DIRECTORY [current_project]] {}]
set current_dir [pwd]
if {
[string compare -nocase $proj_dir $current_dir]
} then {
puts "Not in project directory"
puts "Changing directory to: ${proj_dir}"
cd $proj_dir
}
# Change directory project directory if not in it yet
set proj_dir [regsub {\/work$} [get_property DIRECTORY [current_project]] {}]
set current_dir [pwd]
if {
[string compare -nocase $proj_dir $current_dir]
} then {
puts "Not in project directory"
puts "Changing directory to: ${proj_dir}"
cd $proj_dir
}
switch $command {
"init" {git_init {*}$args}


Loading…
Cancel
Save